What is the relation between Simulink Matlab function block and Simulink time?

1 回表示 (過去 30 日間)
Tan Biru
Tan Biru 2014 年 10 月 19 日
回答済み: Tan Biru 2014 年 10 月 19 日
Dear Matlab community,
I am using Matlab function block in Simulink. I have set the sample time of all other blocks in Simulink as 0.01.
However, I noticed that the matlab function block was called a few times within the 0.01 sample time period. So I have the following two questions:
1. What is the relation between Simulink Matlab function block and Simulink time?
2. How can I control the number of times the Matlab function block is called per simulink time?
Thank you.
Regards, Tan Biru

採用された回答

Tan Biru
Tan Biru 2014 年 10 月 19 日
It turns out that I am able to set the sample time of the Matlab function block itself by: right click the block -> Block Parameters -> Sample time

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by