フィルターのクリア

How to change a parameter of Simulink block during simulation?

6 ビュー (過去 30 日間)
Sourabh Sharma
Sourabh Sharma 2015 年 10 月 30 日
回答済み: Yukthi S 2024 年 7 月 18 日
I want to change some parameters of a Simulink block during simulation without stopping the simulation? Basically, I want to use this for automating the result generation, how to do this in Matlab?

回答 (1 件)

Yukthi S
Yukthi S 2024 年 7 月 18 日
Hi Sourabh,
I got that you want to modify some block parameters in the Simulink model during simulation without pausing it. Assuming you are using latest version of MATLAB, as no version was mentioned.
One approach of doing this in MATLAB is to tune the parameters by using the Simulink Real-Time command “setparam”
More information in the documentation below:
Hope you find this helpful!

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by