How to change MATLAB workspace variable with set_param command

2 次查看(过去 30 天)
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by