GUI Guide: How can I access data from workspace (.mat file) and plot this data, using a GUI interface to select data to plot?
3 次查看(过去 30 天)
显示 更早的评论
Hi there, Im new to GUI and a little bit more experienced in MatLAB.
I would like to select data in the form of .mat file, that is saved in different folders (16 trials of an experiment), and they are all saved in 16 different workspace .matfiles.
I would like to create a GUI, so I can select the data let's say 3-10, to plot the selected data. The GUI would just facilitate and make it automatized, also so I can select specific data in each of the workspace files.
Please help me! All the best, Luciana
BASICALLY DOING THIS on GUI Guide:
Select the results folder (uigetfolder…) Dir(‘**/*.mat’) … this gives you a list of single Measurements. Show the list from before e.g. in a GUI - list-box (multi-select) The GUI will have a check-box to select the channels (can be a single channel or also different channels (1+2+3) )
After the selection is done – the selected channels will be plotted in a new figure.
0 个评论
回答(1 个)
Sara Nadeau
2018-10-29
Hi Luciana,
Do you have access to Simulink? Sounds like the Simulation Data Inspector could be very useful to you. You can import data, create plots, and then export the plots to a MATLAB figure using the Snapshot functionality.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!