使用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?

  • 5
    点赞
  • 56
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值