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 日間)
Luciana Noronha
Luciana Noronha 2018 年 10 月 29 日
回答済み: Sara Nadeau 2018 年 10 月 29 日
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.

回答 (1 件)

Sara Nadeau
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.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by