Matlab function runtime in Simulink
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all, I made a Simulink model that incorporates a certain given block, as well as a matlab function I wrote myself. The given block demands that the time step will be 0.001 secs, but the function (using tic/toc) takes close to 0.003 secs to calculate.
Does anyone know the mechanism behind this? should I use a rate transition block before and after the function? Or is it OK to leave it as-is?
Thanks in advace, Tim
0 件のコメント
採用された回答
Titus Edelhofer
2015 年 2 月 10 日
Hi Tim,
Simulink does not simulate in Real-Time. So if a step of 1s of simulation time takes 0.01s of computer time or an hour does not make a difference (accept with regards to the patience you need).
Titus
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!