我是靠谱客的博主 贤惠机器猫,这篇文章主要介绍使用Matlab对传递函数进行z变换,现在分享给大家,希望可以做个参考。

一、建立传递函数

在这里插入代码片
s = tf('s');
Gc = (100*s/(s+100));

在这里插入图片描述
二、进行z变换

在这里插入代码片
c2d(Gc,0.01,'z')

在这里插入图片描述
dsys=c2d(sys,ts,‘method’);传函离散
这里面的method有好多种,
zoh,零阶保持器法,又称阶跃响应不变法;
foh ,一阶保持器法
tustin,双线性变换法,优点:克服多值映射关系,可以消除频率的混叠;缺点:时域到频域的变换是非线性的,在高频出有较大的失真
imp,脉冲响应不变法,优点:模拟频率到数字频率的转换是线性的,数字滤波器单位脉冲响应的数字表示近似原形的模拟滤波器的单位脉冲响应,因此时域特性逼近好;缺点:会产生频率混叠,只适合带限滤波器

滤波器设计多采用脉冲响应不变法;
控制器设计多采用双线性变换法(‘tustin’)、零极点配置法(‘matched’)、后向差分法(这个c2d函数不包含)等;
如果是控制系统仿真或控制器的直接数字化设计,被控对象离散化则多采用加零阶保持器方法(‘zoh’,又称阶跃响应不变法)。

matlab官方帮助文档中的说明:
'zoh' — Zero-order hold (default). Assumes the control inputs are piecewise constant over the sample time Ts.
'foh' — Triangle approximation (modified first-order hold). Assumes the control inputs are piecewise linear over the sample time Ts.
'impulse' — Impulse invariant discretization
'tustin'Bilinear (Tustin) method. To specify this method with frequency prewarping (formerly known as the 'prewarp' method), use the PrewarpFrequency option of c2dOptions.
'matched' — Zero-pole matching method
'least-squares' — Least-squares method
'damped' — Damped Tustin approximation based on the TRBDF2 formula for sparse models only.

参考链接:https://blog.csdn.net/hjhjhx26364/article/details/84107150
https://blog.csdn.net/weixin_43455581/article/details/110424596?

最后

以上就是贤惠机器猫最近收集整理的关于使用Matlab对传递函数进行z变换的全部内容,更多相关使用Matlab对传递函数进行z变换内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(65)

评论列表共有 0 条评论

立即
投稿
返回
顶部