【发布时间】: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