Effacer les filtres
Effacer les filtres

How to change MATLAB workspace variable with set_param command

2 vues (au cours des 30 derniers jours)
Baris Ciftci
Baris Ciftci le 7 Fév 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?

Réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by