【问题标题】:How to get the following transfer function in Matlab如何在Matlab中获得以下传递函数
【发布时间】:2017-03-31 17:43:46
【问题描述】:

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

【问题讨论】:

  • 你有没有尝试过?是的,Matlab 可以做传递函数,您可以采用多种方法。
  • 您可以访问控制系统工具箱吗?它将使计算变得非常容易。
  • @rayryeng 是的,我可以访问,你能解释一下吗?

标签: matlab transfer-function


【解决方案1】:

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

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)

【讨论】:

  • 非常感谢,这正是我想要的。干杯
  • 您应该提到您也在使用控制系统工具箱。
猜你喜欢
  • 1970-01-01
  • 2014-01-02
  • 1970-01-01
  • 1970-01-01
  • 2021-12-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-12
相关资源
最近更新 更多