- 41
- 0
- 约3.1万字
- 约 43页
- 2019-08-18 发布于北京
- 举报
第二章MATLAB语言的使用与程序设计习题.doc
控制系统仿真
Control System Simulation
习
题
集
辽宁科技大学电子与信息工程学院
二零零七年九月
目 录 TOC \o 1-1 \h \z \u
练习一 1
练习二 3
练习三 5
练习四 6
练习五 8
练习六 9
练习七 13
练习八 14
练习九 15
练习十 16
练习十一 17
练习十二 18
控制系统仿真期末考试模拟题 19
附录(参考答案) 23
PAGE 2
练习一
1. Create a vector of the even whole numbers between 31 and 75.
2. Let x = [2 5 1 6].
a. Add 16 to each element
b. Add 3 to just the odd-index elements
c. Compute the square root of each element
d. Compute the square of each element
3. Let x = [3 2 6 8] and y = [4 1 3 5] (NB. x and y should be column vectors).
a. Add the sum of the elements in x to y
b. Raise each element of x to the power specified by the corresponding
element in y.
c. Divide each element of y by the corresponding element in x
d. Multiply each element in x by the corresponding element in y, calling
the result z.
e. Add up the elements in z and assign the result to a variable called w.
f. Compute x*y - w and interpret the result
4. Evaluate the following MATLAB expressions by hand and use MATLAB to check the answers
a. 2 / 2 * 3
b. 6 - 2 / 5 + 7 ^ 2 - 1
c. 10 / 2 \ 5 - 3 + 2 * 4
d. 3 ^ 2 / 4
e. 3 ^ 2 ^ 2
f. 2 + round(6 / 9 + 3 * 2) / 2 - 3
g. 2 + floor(6 / 9 + 3 * 2) / 2 - 3
h. 2 + ceil(6 / 9 + 3 * 2) / 2 - 3
5. Create a vector x with the elements ...
a. 2, 4, 6, 8, ...
b. 10, 8, 6, 4, 2, 0, -2, -4
c. 1, 1/2, 1/3, 1/4, 1/5, ...
d. 0, 1/2, 2/3, 3/4, 4/5, ...
6. Create a vector x with the elements,
xn = (-1)n+1/(2n-1)
Add up the elements of the version of this vector that has 100 elements.
7. Given a vector, t, of length n, write down the MATLAB expressions
that will correctly compute the following:
a. ln(2 + t + t2)
b. et(1 + cos(3t))
c. cos2(t) + sin2(t)
d. tan-1(1) (this is the inverse tangent function)
e. cot(t)
f. sec2(t) + cot(t) - 1
Test that your solution works for t = 1:0.2:2
8. Plot the functio
您可能关注的文档
- 第一章系统方案的技术要求和设计原则-北京泰达创通科技.doc
- 第一章认识有机化合物-柳州三中.ppt
- 第一讲程序设计及C语言概述.PDF
- 第一部分服务机器人的共性技术.PDF
- 第七章决策盈亏平衡分析模型.ppt
- 第七章图象数据压缩.ppt
- 第七章树图-Read.ppt
- 第三代超低功耗双核.PDF
- 第三章DICOM标准的信息模型.PDF
- 第三章PLC程序设计基础.PDF
- 《GB 19079.4-2025体育场所开放条件与技术要求 第4部分:攀岩场所》.pdf
- GB/T 46918.1-2025微细气泡技术 水中微细气泡分散体系气体含量的测量方法 第1部分:氧气含量.pdf
- 中国国家标准 GB/T 46918.1-2025微细气泡技术 水中微细气泡分散体系气体含量的测量方法 第1部分:氧气含量.pdf
- 《GB/T 46918.1-2025微细气泡技术 水中微细气泡分散体系气体含量的测量方法 第1部分:氧气含量》.pdf
- 中国国家标准 GB 19079.4-2025体育场所开放条件与技术要求 第4部分:攀岩场所.pdf
- 《GB/T 44807.2-2025集成电路电磁兼容建模 第2部分:集成电路电磁干扰特性仿真模型 传导发射建模(ICEM-CE)》.pdf
- GB/T 44807.2-2025集成电路电磁兼容建模 第2部分:集成电路电磁干扰特性仿真模型 传导发射建模(ICEM-CE).pdf
- 中国国家标准 GB/T 44807.2-2025集成电路电磁兼容建模 第2部分:集成电路电磁干扰特性仿真模型 传导发射建模(ICEM-CE).pdf
- GB/T 19405.4-2025表面安装技术 第4部分:湿敏器件的处理、标记、包装和分类.pdf
- 中国国家标准 GB/T 19405.4-2025表面安装技术 第4部分:湿敏器件的处理、标记、包装和分类.pdf
最近下载
- 洗煤厂操作规程.doc VIP
- 洗煤厂操作规程.doc VIP
- AI绘画:Stable Diffusion+Photoshop 课件 第6章 广告设计和生成摄影图片.pptx
- 电气装置安装工程质量检验及评定规程 第15部分:爆炸及火灾危险环境电气装置施工质量检验.pdf VIP
- 2024太阳能路灯安装与验收规范.docx VIP
- 2025年行政法基础试题及答案.docx VIP
- OTIS奥的斯XIOTIS西子奥的斯GECS IO表.pdf
- 行政法试题及答案39465.docx VIP
- 化工项目初期雨水收集池设计探讨.pdf VIP
- 《磁共振引导下聚焦超声(磁波刀)治疗震颤为主型帕金森病和特发性震颤操作规范》.pdf VIP
原创力文档

文档评论(0)