使用Matlab对传递函数进行z变换

您所在的位置:网站首页 matlab离散传函 使用Matlab对传递函数进行z变换

使用Matlab对传递函数进行z变换

2024-07-02 19:46| 来源: 网络整理| 查看: 265

一、建立传递函数

在这里插入代码片 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?



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3