Simulink - Times
古いコメントを表示
Hi,
is there a command which gives me the simulation time (not the real time) of my simulink simulation when I stop it manually? I would only need it at the end of the simulation in Matlab.
I am using callback functions and I can get the total simulation time by t_sim = str2num(get_param('model','StopTime')) However, this time does not depend on when I stop the simulation manually.
I would need a command which gives me the actual simulation time and I could implement it as a callback StopFcn.
Thank you
採用された回答
その他の回答 (1 件)
JOKY JOKE
2011 年 12 月 1 日
0 投票
1 件のコメント
Fangjun Jiang
2011 年 12 月 1 日
No. You can't change the size of the data log. It is dependent on your step size and simulation time. See update in the answer for other solution.
カテゴリ
ヘルプ センター および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!