Create new workspace
16 次查看(过去 30 天)
显示 更早的评论
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 !
0 个评论
回答(2 个)
Daniel Shub
2012-1-11
This is what functions do. Pass what you need to a function, and then it is a protected workspace.
0 个评论
Adrian Dronca
2012-1-11
1 个评论
Jared Van Cor
2021-6-22
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Author Block Masks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!