Error when inputting step function
21 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Luke Figliozzi
il 28 Set 2021
Risposto: Star Strider
il 28 Set 2021
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)
0 Commenti
Risposta accettata
Star Strider
il 28 Set 2021
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)
figure
stepplot(sys)
.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Parallel and Cloud in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
