77范文网 - 专业文章范例文档资料分享平台

控制系统仿真与CAD 实验报告

来源:网络收集 时间:2020-06-03 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

《控制系统仿真与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],[],0.2,0.2,5.7);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;ff.LargeScale='off';ff.TolFun=1e-30;ff.TolX=1e-15;ff.TolCon=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.

Active inequalities (to within options.TolCon = 1e-20): lower upper ineqlin ineqnonlin 2 x =

1.0000 0 1.0000 f =

-1.0000 c =

4 d =

iterations: 5 funcCount: 20 lssteplength: 1

stepsize: 3.9638e-26

algorithm: 'medium-scale: SQP, Quasi-Newton, line-search' firstorderopt: 7.4506e-09 constrviolation: 0

message: [1x766 char] 3.

(a) >> s=tf('s');G=(s^3+4*s+2)/(s^3*(s^2+2)*((s^2+1)^3+2*s+5)) G =

s^3 + 4 s + 2

------------------------------------------------------

s^11 + 5 s^9 + 9 s^7 + 2 s^6 + 12 s^5 + 4 s^4 + 12 s^3 Continuous-time transfer function. (b)

>> z=tf('z',0.1);H=(z^2+0.568)/((z-1)*(z^2-0.2*z+0.99)) H =

z^2 + 0.568 ----------------------------- z^3 - 1.2 z^2 + 1.19 z - 0.99 Sample time: 0.1 seconds

Discrete-time transfer function. 4.

>> A=[0 1 0;0 0 1;-15 -4 0];D=0;G=ss(A,B,C,D),Gs=tf(G),Gz=zpk(G) G =

-13];B=[0 0 2]';C=[1

0

a =

x1 x2 x3 x1 0 1 0 x2 0 0 1 x3 -15 -4 -13 b = u1 x1 0 x2 0 x3 2 c =

x1 x2 x3 y1 1 0 0 d = u1 y1 0

Continuous-time state-space model. Gs =

2 ----------------------- s^3 + 13 s^2 + 4 s + 15

Continuous-time transfer function. Gz =

2

---------------------------------

(s+12.78) (s^2 + 0.2212s + 1.174) Continuous-time zero/pole/gain model. 5.

设采样周期为0.01s

>> z=tf('z',0.01);H=(z+2)/(z^2+z+0.16) H =

z + 2 -------------- z^2 + z + 0.16

Sample time: 0.01 seconds Discrete-time transfer function.

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库控制系统仿真与CAD 实验报告在线全文阅读。

控制系统仿真与CAD 实验报告.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/jiaoyu/1087926.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: