Running time in Simulink

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

回答 (1 件)

Orion
Orion 2014 年 11 月 6 日
編集済み: Orion 2014 年 11 月 6 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2014 年 11 月 5 日

編集済み:

2014 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by