资源描述:
《自动控制原理MATLAB实验》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、>>wn=0.4wn=0.4000>>t=0.01:80,num=[wn^2]t=Columns1through100.01001.01002.01003.01004.01005.01006.01007.01008.01009.0100Columns11through2010.010011.010012.010013.010014.010015.010016.010017.010018.010019.0100Columns21through3020.010021.010022.010023.010024.010025.010026.010027.010028.010029.0100Column
2、s31through4030.010031.010032.010033.010034.010035.010036.010037.010038.010039.0100Columns41through5040.010041.010042.010043.010044.010045.010046.010047.010048.010049.0100Columns51through6050.010051.010052.010053.010054.010055.010056.010057.010058.010059.0100Columns61through7060.010061.010062.010063.
3、010064.010065.010066.010067.010068.010069.0100Columns71through8070.010071.010072.010073.010074.010075.010076.010077.010078.010079.0100num=0.1600>>zeta1=0;den1=[12*zeta1*wnwn^2]den1=1.000000.1600>>zeta3=0.3;den3=[12*zeta1*wnwn^2]den3=1.000000.1600>>zeta5=0.5;den5=[12*zeta*wnwn^2]den5=1.000000.1600>>[
4、y1,x,t]=step(num,den1,t)y1=00.07890.30330.63761.02921.41611.73741.94221.99831.89681.65361.30730.91250.53150.22440.03980.00680.13060.39160.74871.14551.51931.81111.97481.98471.83911.56101.19430.79700.43170.15610.01380.02720.19410.48830.86331.25981.61541.87371.99421.95771.76991.46071.07870.68430.33970.
5、09940.00120.06080.26860.59190.97961.37061.70301.92452.00001.91761.69031.35410.96200.57580.25670.05480.00230.10720.35310.70111.09631.47631.78111.96261.99211.86501.60131.24270.84570.47320.18380.02320.0169x=[]t=Columns1through160123456789101112131415Columns17through3216171819202122232425262728293031Col
6、umns33through4832333435363738394041424344454647Columns49through6448495051525354555657585960616263Columns65through8064656667686970717273747576777879>>[y3,x,t]=step(num,den3,t);>>[y5,x,t]=step(num,den5,t);>>plot(t,y1,t,y3,t,y5)>>gridon>>wn=0.4;>>z=[0:0.1:2];>>t=[0:0.1:80];>>figure(1)holdonforz1=znum=[
7、wn^2];den=[1,2*z1*wn,wn^2];[y,x,t]=step(num,den);plot(t,y)endtitle('stepresponse')holdoff>>wn=0.4;z=[0:0.1:2];t=[0:0.1:80];figure(1)holdonforz1=znum=[wn^2];den=[1,2*z1*wn,wn^2];[y,x,t]=step(num,den,t)