Run Matlab FUNCTION at the end of Simulink simulation
47 ビュー (過去 30 日間)
表示 古いコメント
Hello,
in a simulink simulation I compute some signals.
At the end of the simulation, when the system reach the steady-state condition, I want to use the final value of such signals to create a custom 3D plot. To do that I already built a Matlab FUNCTION block.
I don't want to run such Matlab FUNCTION block during the simulation because the computational time grows so much, and moreover I am interested only in the final value (steady-state).
How can I run such "Matlab FUNCTION block" only at the end of the simulation?
Thanks and best regards
採用された回答
Sai Sri Pathuri
2020 年 5 月 30 日
You may use StopFcn callback in your model. Refer the following link for Model callbacks. Expand Model Simulation Callback Parameters in the below documentation for StopFcn.
その他の回答 (0 件)
参考
カテゴリ
Find more on Sources in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!