How to use variables in a subsystem mask
Ältere Kommentare anzeigen
Hi!
I am working on a subsystem mask that changes its outputs depending on a popup. The thing is that I have to know which was the previous popup item selected to do one change or another.
I am doing it by using one parameter of the mask. It works when it is shown in the mask ( show parameter checked), but when I hide it (I don't want to see this variable) it stop working properly.
Is there any way to use variables instead of parameters to do that?
Many thanks!
8 Kommentare
Kaustubha Govind
am 17 Jun. 2013
How does the user change the pop-up value if it is invisible?
Dani Tormo
am 18 Jun. 2013
Kaustubha Govind
am 18 Jun. 2013
Dani: Are you saying that the hidden parameter stores the previous value of the visible popup parameter? If so, how do you access the previous value from the dialog callback?
Dani Tormo
am 19 Jun. 2013
Kaustubha Govind
am 19 Jun. 2013
How do you read the previous value exactly? I thought that get_param returns the new value when called from the parameter callback?
Dani Tormo
am 24 Jun. 2013
Dani Tormo
am 4 Jul. 2013
Zoe Xiao
am 2 Aug. 2017
I tried your code in 2017a, and it worked fine if you deselect the 'visible' check box of the mask parameter.
Antworten (0)
Kategorien
Mehr zu Subsystems finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!