(App designer) How can I display all the graphs that I am plotting in a for loop?
8 views (last 30 days)
I am designing an app which I use a for loop to plot multiple graphs and I want to display these graphs in the axes I put on the app window. Maybe a drop down menu to show graphs would be an idea. However, I still could not find a way to do that. I am pretty new at these stuff so any help will be extremely helpful.
Mario Malic on 28 Feb 2021
You can set up your code into calculating your results, getting them all in a single matrix or a structure or a table and plot from there. Whatever you choose for your variable to be saved in, set it up as a property of the app so you can use it to plot the data easier from whereever in the app.
In your dropdown, define ItemsData, to be the vector 1:length(Items) in the App Designer. This way dropdown's value property will be numeric, corresponding to the ItemsData, and you can use it to index into the property(variable) with the results you want to plot.