【问题标题】:Symbolic transfer function matlab符号传递函数matlab
【发布时间】:2014-05-23 01:10:05
【问题描述】:

我正在尝试使用带有符号值的传递函数,但我只返回错误。

有没有办法通过 MatLab 将拉普拉斯转换为符号模式?

这是我正在尝试做的一个示例和 MatLab 消息错误:

>> syms Ki Kp Te R;
>> s=tf('s');
>> g=((Kp*s+Ki)/s)
Error using sym>tomupad (line 1014)
Conversion to 'sym' from 'tf' is not possible.

Error in sym (line 139)
            S.s = tomupad(x,'');

Error in sym/privResolveArgs (line 823)
                    argout{k} = sym(arg);

Error in sym/privBinaryOp (line 838)
            args = privResolveArgs(A, B);

Error in  *  (line 216)
        X = privBinaryOp(A, B, 'symobj::mtimes');

我尝试了一些其他形式来创建一个没有结果的传递函数:

>> sys=tf([Te],[0 Ki])
Error using tf (line 287)
The values of the "num" and "den" properties must be row vectors or cell arrays of row vectors, where each vector
is nonempty and containing numeric data. Type "help tf.num" or "help tf.den" for more information.

【问题讨论】:

    标签: matlab symbolic-math


    【解决方案1】:

    您不能将传递函数与符号变量一起使用。检查documentation on tf

    sys = tf(num,den) 创建一个连续时间传递函数 numden 指定的分子和分母。输出 sys 是:

    • tf 模型对象,当numden 是数值数组时。
    • numden 包含可调参数时的广义状态空间模型(genss),例如realp 参数或广义矩阵(genmat)。
    • numden 不确定时的不确定状态空间模型(uss) (需要 Robust Control Toolbox™ 软件)。

    【讨论】:

    【解决方案2】:

    答案是枫!太棒了,还有 MapleSim 就像 Simulink/Xcos 但你可以在传递函数中使用各种变量。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多