下载此文档

控制系统仿真与cad-实验报告.doc


文档分类:高等教育 | 页数:约34页 举报非法文档有奖
1/34
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/34 下载此文档
文档列表 文档介绍
可编辑
页脚下载后可删除,如有侵权请告知删除!
可编辑
《控制系统仿真与CAD》
实验课程报告

可编辑
页脚下载后可删除,如有侵权请告知删除!
可编辑
一、实验教学目标与基本要求
上机实验是本课程重要的实践教学环节。实验的目的不仅仅是验证理论知识,更重要的是通过上机加强学生的实验手段与实践技能,掌握应用MATLAB/Simulink 求解控制问题的方法,培养学生分析问题、解决问题、应用知识的能力和创新精神,全面提高学生的综合素质。
通过对MATLAB/Simulink进行求解,基本掌握常见控制问题的求解方法与命令调用,更深入地认识和了解MATLAB语言的强大的计算功能与其在控制领域的应用优势。
上机实验最终以书面报告的形式提交,作为期末成绩的考核内容。
二、题目及解答
第一部分:MATLAB 必备基础知识、控制系统模型与转换、线性控制系统的计算机辅助分析
1.
>>f=inline('[-x(2)-x(3);x(1)+a*x(2);b+(x(1)-c)*x(3)]','t','x','flag','a','b','c');[t,x]=ode45(f,[0,100],[0;0;0],[],,,);plot3(x(:,1),x(:,2),x(:,3)),grid,figure,plot(x(:,1),x(:,2)),grid
可编辑
页脚下载后可删除,如有侵权请告知删除!
可编辑
2.
>>y=@(x)x(1)^2-2*x(1)+x(2);ff=optimset;='off';=1e-30;=1e-15;=1e-20;x0=[1;1;1];xm=[0;0;0];xM=[];A=[];B=[];Aeq=[];Beq=[];[x,f,c,d]=fmincon(y,x0,A,B,Aeq,Beq,xm,xM,***@wzhfc1,ff)
Warning: Options LargeScale = 'off' and Algorithm =
'trust-region-reflective' conflict.
Ignoring Algorithm and running active-set algorithm. To run
trust-region-reflective, set
LargeScale = 'on'. To run active-set without this warning, use
Algorithm = 'active-set'.
> In fmincon at 456
Local minimum possible. Constraints satisfied.
fmincon stopped because the size of the current search direction is less than
twice the selected value of the step size tolerance and constraints are
可编辑
页脚下载后可删除,如有侵权请告知删除!
可编辑
satisfied to within the selected value of the constraint tolerance.
<stopping criteria details>
Active inequalities (to within = 1e-20):
lower upper ineqlin ineqnonlin
2
x =

0

f =
-
c =
4
d =
iterations: 5
funcCount: 20
lssteplength: 1
stepsize: -26
algorithm: 'medium-scale: SQP, Quasi-Newton, line-search'
firstorderopt: -09
constrviolation: 0
message: [1x766 char]
3.
(a) >> s=tf('s');G=(s^3+

控制系统仿真与cad-实验报告 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数34
  • 收藏数0 收藏
  • 顶次数0
  • 上传人相惜
  • 文件大小689 KB
  • 时间2021-10-25