欢迎来到天天文库
浏览记录
ID:12160936
大小:3.05 MB
页数:0页
时间:2018-07-15
《matlab-中数学模型如何表示》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、实验一MATLAB中数学模型的表示1.传递函数(SISOL)多项式,》P=[1024]两函数相乘conv()函数(零-极点形式表示传递函数)Fig1.1Usingconvandpolyvaltomultiplyandevaluatethepolynomials(3s2+2s+1)(s+4)传递函数sys=tf(num,den)Figure1.2(a)Thetffunction.(b)Usingthetffunctiontocreatetransferfunctionobjectsandaddingthemusingthe“+”operator.1.传递函数的特征根
2、及零、极点图1):多项式求根函数roots()2):若已知多项式的特征值,poly()函数求多项式系数Figure1.3Enteringthepolynomialp(s)=s3+3s2+4andcalculatingitsroots.Figure1.4(a)Thepoleandzerofunctions.(b)Usingthepoleandzerofunctionstocomputethepoleandzerolocationsofalinearsystem.3):pzmap()传递函数在复平面上的零、极点图Figure1.5Thepzmapfunction.Fi
3、gure1.6Pole–zeromapforG(s)/H(s)Figure1.7TransferfunctionexampleforG(s)andH(s).1.控制系统的方框图模型1)串联sys=series(sys1,sys2)Figure1.8(a)Blockdiagram.(b)Theseriesfunction.Figure1.9Applicationoftheseriesfunction.2)并联sys=parallel(sys1,sys2)Figure1.10(a)Blockdiagram.(b)Theparallelfunction.3)反馈sys=
4、feedback(sysg,sysh,sign)(Sign为反馈符号,-1为负反馈,+1为正反馈,缺省sign默认为负反馈)Figure1.11Abasiccontrolsystemwithunityfeedback.Figure1.12(a)Blockdiagram.(b)Thefeedbackfunctionwithunityfeedback.Figure1.13(a)Blockdiagram.(b)Thefeedbackfunction.单位反馈系统sys=cloop(g,sign)(因版本不同此条指令可能没有)tf(Figure1.14(a)Blockdi
5、agram.(b)Applicationofthefeedbackfunction.Figure1.15Applicationofthefeedbackfunction:(a)blockdiagram1.控制系统的零、极点模型零极点模型与多项式模型转换[z,p,k]=tf2zp(num,den)[num,den]=zp2tf(z,p,k)》num=[12241220];den=[24622];》[z,p,k]=tf2zp(num,den);》[num,den]=zp2tf(z,p,k);》G=tf(num,den)MP2.1考虑两个多项式,使用MATLAB计算下列
6、各式:(a);(b)MP2.2考虑MP2.2描述的反馈控制系统;(a)利用series和feedback函数,计算闭环传递函数;(b)用step函数求闭环系统单位阶跃响应,并验证输出终值为0.4。FigureMP2.2Anegativefeedbackcontrolsystem.MP2.6考虑MP2.6所示框图,(a)用Matlab化简框图,计算系统的闭环传递函数;(b)利用pzmap函数闭环传递函数的零-极点图;(c)用roots函数计算闭环传递函数的零点和极点,并与(b)中结果比较。FigureMP2.2Amultiple-loopfeedbackcontro
7、lsystem.MP2.8某系统的传递函数为:绘制系统的单位阶跃响应,参数Z=3,6和12。
此文档下载收益归作者所有