Error when inputting step function

21 ビュー (過去 30 日間)
Luke Figliozzi
Luke Figliozzi 2021 年 9 月 28 日
回答済み: Star Strider 2021 年 9 月 28 日
m2 = 350;
m1 = 10;
Ks = 10000;
Kw = 500000;
b = 1000;
Num = Kw* [b Ks];
Den = m1*m2*[1 (b/m1 + b/m2) (Ks/m1 + Ks/m2 + Kw/m1) b*Kw/ (m1*m2) (Ks*Kw) / (m1*m2)];
step(Num,Den)
Error message:
>> help
Check for incorrect argument data type or missing argument in call to function 'step'.
Error in help (line 8)
step(Num,Den)

採用された回答

Star Strider
Star Strider 2021 年 9 月 28 日
The code is missing a setp (pun intended) —
m2 = 350;
m1 = 10;
Ks = 10000;
Kw = 500000;
b = 1000;
Num = Kw* [b Ks];
Den = m1*m2*[1 (b/m1 + b/m2) (Ks/m1 + Ks/m2 + Kw/m1) b*Kw/ (m1*m2) (Ks*Kw) / (m1*m2)];
sys = tf(Num,Den) % Create A 'system' Object With The 'tf' Function (In This Instance)
sys = 5e08 s + 5e09 ---------------------------------------------------- 3500 s^4 + 360000 s^3 + 1.786e08 s^2 + 5e08 s + 5e09 Continuous-time transfer function.
figure
stepplot(sys)
.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel and Cloud についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by