matlab怎么实现z变换呢?(最好有m文件)谢拉!
2个回答
展开全部
用c2d函数
例如:
>> [tf1,tf2]=zp2tf([],[-0.1,-0.2,-0.5],0.01);
>> h=tf(tf1,tf2)
Transfer function:
0.01
-----------------------------
s^3 + 0.8 s^2 + 0.17 s + 0.01
>> hd=c2d(h,0.1,'tustin')
Transfer function:
1.201e-006 z^3 + 3.604e-006 z^2 + 3.604e-006 z + 1.201e-006
-----------------------------------------------------------
z^3 - 2.921 z^2 + 2.845 z - 0.9231
Sampling time: 0.1
也可直接用tf生成z域传递函数,在参数中加入采样世间即可
请参照帮助help c2d;help tf
例如:
>> [tf1,tf2]=zp2tf([],[-0.1,-0.2,-0.5],0.01);
>> h=tf(tf1,tf2)
Transfer function:
0.01
-----------------------------
s^3 + 0.8 s^2 + 0.17 s + 0.01
>> hd=c2d(h,0.1,'tustin')
Transfer function:
1.201e-006 z^3 + 3.604e-006 z^2 + 3.604e-006 z + 1.201e-006
-----------------------------------------------------------
z^3 - 2.921 z^2 + 2.845 z - 0.9231
Sampling time: 0.1
也可直接用tf生成z域传递函数,在参数中加入采样世间即可
请参照帮助help c2d;help tf
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询