Adress figures without creating them
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I have a matlabscript with 50+ figures.
I would like to built a GUI where i can choose out of a list of all the available figures and then execute only the choosen ones. (Without executing the whole script in the first place. I know how to adress open figures. But thats not the question)
How can i do that?
Thanks for your help!
Chris
3 Comments
Adam Danz
on 5 Jun 2019
The main part of your code should produce all data needed for all figures. Each figure could be put into a nested function. Then you can use a listbox, checkbox panel, dropdown box, or almost any other UI component to list all possible figures. The callback function can include a switch-case within a for-loop that calls the appropriate figures.
Christian Tieber
on 5 Jun 2019
Adam Danz
on 5 Jun 2019
I suggest you build the list manually. Let's say the user selected 5 figure (i = 5)
for i = 1:numberSelected
switch choice(i)
case 1
plotFigure1(...)
case 2
plotFigure2(...)
case 3
plotFigure3(...)
case 4
etc..
end
end
But to answer your question, see this
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!