Borrar filtros
Borrar filtros

How to change a parameter of Simulink block during simulation?

23 visualizaciones (últimos 30 días)
Sourabh Sharma
Sourabh Sharma el 30 de Oct. de 2015
Respondida: Yukthi S el 18 de Jul. de 2024 a las 12:44
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?

Respuestas (1)

Yukthi S
Yukthi S el 18 de Jul. de 2024 a las 12:44
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!

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by