Borrar filtros
Borrar filtros

Why do I get a different response when using the "step" command in the command line and the scope in Simulink?

71 visualizaciones (últimos 30 días)
I have a MIMO (10 outputs and 5 inputs) state transition matrix I don't understand why do I get different responses when invoking a step input in the command line and in Simulink. Can someone give me a light on this?

Respuesta aceptada

Birdman
Birdman el 30 de Oct. de 2017
Editada: Birdman el 30 de Oct. de 2017
It is because of the solver. In Simulink, you probably use variable step solver, which is more accurate. In MATLAB Command line, you can overcome this situation by making the simulation with a small step size that you define, so you will get more accurate results.
t = 0:1e-6:10;
step('your model',t)
Try the code above.

Más respuestas (0)

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by