Matlab:线性化Simulink模型并获得线性化传递函数? [英] Matlab: Linearizing Simulink model and getting linearized transfer function?

查看:3384
本文介绍了Matlab:线性化Simulink模型并获得线性化传递函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Simulink中的非线性系统中确定线性化传递函数。我可以看到,应该可以在Matlab中使用 linmod 函数,但是当我尝试这个时,

  [num,den] = linmod('sys')

m没有得到分子和分母,而是状态空间矩阵等。任何人都可以提供帮助吗? linmod 总是返回一个state-空间表示(见文件)。使用 tf 将stae-space表示转换为传递函数:


转换为传递函数



tfsys = tf(sys)转换动态
系统模型 sys 传递函数形式。输出 tfsys tf
模型对象,表示 sys

顺便说一句,如果你有Simulink控制设计,更好的替代方案是 linmod linearize


I want to determine the linearized transfer function from a non-linear system made in Simulink. I can see that it should be possible to use the linmod function in Matlab but when I try this

[num,den]=linmod('sys')

I'm not getting the numerator and denominator but instead the state space matrix etc. Can anyone help?

解决方案

linmod always returns a state-space representation (see documentation). Use tf to convert your stae-space representation to a transfer function:

Conversion to Transfer Function

tfsys = tf(sys) converts the dynamic system model sys to transfer function form. The output tfsys is a tf model object representing sys expressed as a transfer function.

BTW, if you have Simulink Control Design, a better alternative to linmod is linearize.

这篇关于Matlab:线性化Simulink模型并获得线性化传递函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆