(App designer) How can I display all the graphs that I am plotting in a for loop?
5 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
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.
0 个评论
回答(1 个)
Mario Malic
2021-2-28
Hello,
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.
2 个评论
Mario Malic
2021-2-28
Well, can I suggest first that you try App Designer interactive tutorial? When you open App Designer, if there are tiles with the apps on front page, there's one called Interactive Tutorial. If there are none, click Open button on toolbar, and you will see the app. Try that first and then get back with some progress, at least components laid down on the canvas.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!