GUI Guide: How can I access data from workspace (.mat file) and plot this data, using a GUI interface to select data to plot?

5 views (last 30 days)
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.

Answers (1)

Sara Nadeau
Sara Nadeau on 29 Oct 2018
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.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!