Matlab:线性化Simulink模型并获得线性化传递函数? [英] Matlab: Linearizing Simulink model and getting linearized transfer function?
问题描述
我想从Simulink中的非线性系统中确定线性化传递函数。我可以看到,应该可以在Matlab中使用 linmod
函数,但是当我尝试这个时,
[num,den] = linmod('sys')
m没有得到分子和分母,而是状态空间矩阵等。任何人都可以提供帮助吗? linmod
总是返回一个state-空间表示(见文件)。使用 tf
将stae-space表示转换为传递函数:
转换为传递函数
tfsys = tf(sys)
转换动态
系统模型sys
传递函数形式。输出tfsys
是tf
模型对象,表示sys $ c
顺便说一句,如果你有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 modelsys
to transfer function form. The outputtfsys
is atf
model object representingsys
expressed as a transfer function.
BTW, if you have Simulink Control Design, a better alternative to linmod
is linearize
.
这篇关于Matlab:线性化Simulink模型并获得线性化传递函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!