Running time in Simulink

3 visualizaciones (últimos 30 días)
Justas
Justas el 5 de Nov. de 2014
Editada: Orion el 6 de Nov. de 2014
I need to multiple Cos*omega*t in Simulink. In Matlab command window I get it with code: t=0:0.001:0.1; omega=314; v_a=cos(omega*t)
and everything is Ok, but I need it in Simulink. I tried this model:
but I cant get the required result. I think the problem is Clock. I need that 314 multiply with running time. How can I get it?
Thanks

Respuestas (1)

Orion
Orion el 6 de Nov. de 2014
Editada: Orion el 6 de Nov. de 2014
Your modeling seems good.
But did you think to change the configuration of the solver ?
By default, a simulink model is in variable-step. change it to fixed-step, with your own simulation parameters.

Categorías

Más información sobre Simulink 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