如何在Matlab中获得以下传递函数

时间:2017-03-31 17:43:47

标签: matlab transfer-function

我想知道是否有一个Matlab代码可以从下面的2个等式计算下面的TF。谢谢

Transfer Function

1 个答案:

答案 0 :(得分:0)

符号数学工具箱可以在这里使用:

syms alpha theta delta s
    % we have to solve the system
sol= solve([(88.5*s+3.13)*alpha+(-88.5*s+2.06)*theta==-4.63*delta,...
    -11.27*alpha+(4.75*s^2+0.321*s)*theta==-34.25*delta] ,[theta delta])
tfuncsym= sol.theta/sol.delta % the transfer function (sym object)
[n,d]= numden(tfuncsym);
    % the transfer function (tf object)
tf_object= tf(fliplr(double(coeffs(n))),fliplr(double(coeffs(d))))
    % the transfer function (zpk object)
    % this is exactly what we need
zpk_object= zpk(tf_object)