How to change MATLAB workspace variable with set_param command

2 visualizaciones (últimos 30 días)
Baris Ciftci
Baris Ciftci el 7 de Feb. de 2018
In the help section of set_param command, it is written that "After you set parameters in the MATLAB® workspace, to see the changes in a model, update the diagram. set_param(model,'SimulationCommand','Update')" But, I am not able to change the workspace parameters with set_param command in an embedded function in Simulink. I tried 'base workspace' as the object of set_param but it gave error "'base workspace' is not a valid model name because it is not a valid MATLAB function name." Any advices?

Respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by