Error when inputting step function
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Luke Figliozzi
am 28 Sep. 2021
Beantwortet: Star Strider
am 28 Sep. 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 Kommentare
Akzeptierte Antwort
Star Strider
am 28 Sep. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Parallel and Cloud finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
