Create new workspace
Afficher commentaires plus anciens
Hello all,
I have a mask(loads a GUI) with many variables that also exist in base. I want to be able to use the mask block more than 1 in my Simulink models.
I want to create a new workspace everytime i place the block in the model and i configure it.
If you have any ideas how i can solve this, please share.
Thanks in advance !
Réponses (2)
Daniel Shub
le 11 Jan 2012
0 votes
This is what functions do. Pass what you need to a function, and then it is a protected workspace.
Adrian Dronca
le 11 Jan 2012
0 votes
1 commentaire
Jared Van Cor
le 22 Juin 2021
This is probably too little too late, but look at assignin
assignin("base","variable",app.variable)
This will take the variable in your app and pass if to your primary default workspace. You can also pass to other workspace.
Catégories
En savoir plus sur Simulink Environment Customization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!