Transfer Function using symbolic function

2 ビュー (過去 30 日間)
Ian Thean
Ian Thean 2020 年 11 月 6 日
コメント済み: Ian Thean 2020 年 11 月 6 日
syms s k
K = k;
G = 6s + 12/s^3 + 8s^2 + 19s + 12;
F = 1;
R = 1/s^2;
Error = (1 - K*G/(1+K*G*F))*R;
ssE = limit(s*Error,s,0);
I have this code to derive the steady state error. But I always get an error for G stating invalid expression. This is equation has been expanded from the slimplifed form as using simplied form could not work. It works with single variable/pole such as 1/s+2 etc.
Please advice me on this issues. Thanks!

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 11 月 6 日
MATLAB has absolutely no implied multiplication, not even in symbolic expressions. If you want 6 times s, use 6*s
  1 件のコメント
Ian Thean
Ian Thean 2020 年 11 月 6 日
Ah right! Thanks!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by