Create new workspace
조회 수: 25 (최근 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!