青岛理工大学模拟与仿真考试资料

上传人:ni****g 文档编号:487264745 上传时间:2023-07-12 格式:DOC 页数:19 大小:148.50KB
返回 下载 相关 举报
青岛理工大学模拟与仿真考试资料_第1页
第1页 / 共19页
青岛理工大学模拟与仿真考试资料_第2页
第2页 / 共19页
青岛理工大学模拟与仿真考试资料_第3页
第3页 / 共19页
青岛理工大学模拟与仿真考试资料_第4页
第4页 / 共19页
青岛理工大学模拟与仿真考试资料_第5页
第5页 / 共19页
点击查看更多>>
资源描述

《青岛理工大学模拟与仿真考试资料》由会员分享,可在线阅读,更多相关《青岛理工大学模拟与仿真考试资料(19页珍藏版)》请在金锄头文库上搜索。

1、Exercises on Control System SimulationText book: CONTROL SYSTEM SIMULATION AND CAD Thanks to OUYANG Xinyu and XU Shaochuan Reference book控制系统仿真与CAD 王燕平 机械工业出版社 Chapter 1 Introduction to MATLAB Chapter 2 Basic MATLAB Commands Chapter 3 Programming in MATLAB Chapter 4 Basic Plotting Function Chapter 5

2、 Application of MATLAB in Control System Simulation Chapter 6 Simulink-Interactive and Integration Environment Chapter 7 Application of Automation Control System SimulationChapter 1 Introduction to MATLAB. PROBLEMS1. Translate the following paragraphs into Chinese.1.1 The MATLAB desktop appears when

3、 the program is started. It integrates many of the MATLAB tools in a single location. These tools include the Command Window, the Command History Window, the Start Button, the Workspace Browser, the Array Editor, and the Current Directory Viewer. The Command Window is the most important of the windo

4、ws. It is the one in which all commands are typed and results are displayed. 2. Answer the following questions 2.1 List the different ways that you get help in MATLAB. 2.2 Explain the usages of the following tools managed in the matlab desktop,(1) Command Window: (2) Command History:(3) Current Dire

5、ctory Browser:(4) Workspace Browser: (5) Editor/Debugger: . SOLUTIONS1. Translate the following paragraphs into Chinese.1.1 MATLAB启动后会显示其应用界面。该界面集成了MATLAB工具。包括命令窗口,历史命令窗口,开始按钮,工作空间浏览器,数组编辑器以及当前路径查看器。命令窗口时最重要的窗口,在该窗口中可以键入命令与显示结果。2. Answer the following questions 2.1 (1) The preferred method is to use

6、 the Help Browser;(2) The second way is to type help or help followed by a function name in the Command Window.(3) The third way to get help is the lookfor command2.2 (1) Run MATLAB functions.(2) View a log of the functions you entered in the Command Window, copy them, and execute them. (3) View MAT

7、LAB files and related files, perform file operations such as open, and find content.(4) View and make changes to the contents of the workspace.(5) Create, edit, and debug M-files (files containing MATLAB functions).Chapter 2 Basic MATLAB Commands. PROBLEMS 1. Translate the following paragraphs into

8、Chinese.1.1 The MATLAB language includes an extremely large number of built-in functions to help us solve problems. This list of functions is much richer than the list of functions found in other languages such as Fortran or C+, and it includes device-independent plotting capabilities. A complete li

9、st of all MATLAB functions is available through MATLAB HELP, which can be accessed by clicking the HELP icon, or by typing helpdesk in the Command Window. 1.2 The fundamental unit of data in any MATLAB program is the array. An array is a collection of data values organized into rows and columns, and

10、 known by a single name. Individual data values within an array are accessed by including the name of the array followed by subscripts in parentheses that identify the row and column of the particular value. (ch2)2. Fill in the following blanks.2.1 Suppose A=1 3 5 7, then diag(A)= . 2.2 Suppose X=1

11、2 3;4 5 6; 7 8 9, Then diag(X)= . 2.3 Suppose x=1; y=0; z=0, then the result of s=x/y is s = ; while the result of t=y/z is t = . 2.4 The expression X=2: 6 will produce the array X = . 2.5 Suppose B = 1 2 3; 4 5 6; 7 8 9. Then B(1, :) = , B(: , 1:2:3) = , 2.6 The expression C=2:5 will produce the ar

12、ray C = . 2.7 Suppose x = 0 1 2 3 4 5 6 7 8 9 . Then x(7: end) = , x(end) = .2.8 Suppose x = 1 2 3 4; 5 6 7 8; 9 10 11 12. Then x(2:end, 2:end) = . 2.9 If a=1 2; 3 4 and b=-1 3; -2 1, then a+b= , a+4= . 2.10 If A=1 2; 2 -1 and B=-1 3;-2 1, then A*B= , A.*B= . 2.11 eye is a function to generates iden

13、tity matrix, then eye(4)= ; 2.12 ones is a function to generates matrix of ones, then 3*ones(2,3)= ; 2.13 Suppose X = 1 2 ; 3 4, Y = 1; 2; 1; then X.2= ; Y.*Y= ; 4./Y= ; 2.14 Suppose X=1 2 1;4 5 4; 7 8 7 , then zeros(size(B)= ; diag(B)= . 2.15 Suppose X=3 2 1; 2 2 2; 1 2 3; , then zeros(size(X)= ; d

14、iag(X)= . 12.16 Suppose C=1 2 3; 2 3 4; 3 4 5, then triu(C)= ; tril(C)= .2.17 Suppose X=1 2 3; 3 4 5 ; 5 6 7 , then rot90(X) = ; fliplr(X)= .3. Answer the following questions3.1 Explain the functions of the following basic commands.(1) abs(x): (2) exp(x): (3) ischar(a): 3.2 Explain the functions of the followi

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 幼儿/小学教育 > 小学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号