WORD格式
机械电子工程二班 朱瑞 631224030230
0.6 z + 2.642
---------------------- z^2 - 1.368 z + 0.3679 Sample time: 1 seconds
Discrete-time transfer function. >> Wez=filt([1 -2 1],[1],1) Wez =
1 - 2 z^-1 + z^-2 Sample time: 1 seconds
Discrete-time transfer function. >> Wz=1-Wez Wz =
2 z^-1 - z^-2 Sample time: 1 seconds
Discrete-time transfer function. >> Dz = (1-Wez)/Wez/Gz Dz =
2 - 3.736 z^-1 + 2.104 z^-2 - 0.3679 z^-3 --------------------------------------------
0.9 - 4.715 z^-1 - 1.606 z^-2 + 2.642 z^-3
Sample time: 1 seconds
Discrete-time transfer function. >> Rz=filt([0 1],[1 -2 1],-1) Rz =
z^-1
----------------- 1 - 2 z^-1 + z^-2 Sample time: unspecified
12
专业资料整理
WORD格式
机械电子工程二班 朱瑞 631224030230
Discrete-time transfer function. >> Yz=Rz*Wz Yz =
2 z^-2 - z^-3 ----------------- 1 - 2 z^-1 + z^-2 Sample time: 1 seconds
Discrete-time transfer function. >> impulse(Yz)
>> pole(Gz) ans =
1.0
0.10
>> zero(Gz) ans =
13
专业资料整理
WORD格式
机械电子工程二班 朱瑞 631224030230
-0.7183
1
D( z) 0.7(1 0.5 z )(1 0.3679 z
1 1 (1 z )(1 0.7183 z ) 第四章 P92 习题
0.11某控制系统如图 4.1 所示,已知被控对象的传递函G (s) 数为
样 0
1
,设采
s(1 0.1s)(1 0.5 s)
周期为 T=0.1s ,针对单位速度输入设计有波纹系统的数字控制器,计算采样瞬间数字控制器和 系统的输出响应并绘制图形。
1
)
>> den=conv([1 0],conv([0.1 1],[0.05 1])) den =
0.50
0.1500 1.0000 0
>> Gs=tf([1],den) Gs =
1
------------------------
0.5 s^3 + 0.15 s^2 + s
Continuous-time transfer function. >> Gz=c2d(Gs,0.1) Gz =
0.1681 z^2 + 0.03407 z + 0.003774
----------------------------------- z^3 - 1.503 z^2 + 0.553 z - 0.04979 Sample time: 0.1 seconds
Discrete-time transfer function. >> Wez=filt([-1 1 -2 1],[1],1)
专业资料整理
WORD格式
14
专业资料整理
WORD格式
机械电子工程二班 朱瑞 631224030230
Wez =
-1 + z^-1 - 2 z^-2 + z^-3 Sample time: 1 seconds
Discrete-time transfer function. >> Wz=1-Wez Wz =
2 - z^-1 + 2 z^-2 - z^-3 Sample time: 1 seconds
Discrete-time transfer function. >> Rz=filt([0 1],[1 -2 1],-1) Rz =
z^-1
----------------- 1 - 2 z^-1 + z^-2 Sample time: unspecified
Discrete-time transfer function. >> Yz=Rz*Wz Yz =
2 z^-1 - z^-2 + 2 z^-3 - z^-4 -----------------------------
1 - 2 z^-1 + z^-2
Sample time: 1 seconds
Discrete-time transfer function. >> impulse(Yz)
15
专业资料整理