Error when inputting step function
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Luke Figliozzi
el 28 de Sept. de 2021
Respondida: Star Strider
el 28 de Sept. de 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 comentarios
Respuesta aceptada
Star Strider
el 28 de Sept. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Parallel and Cloud en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
