How do I create a GUI to plot graphs using data stored in .mat file?
Show older comments
The variables to be plotted by the GUI are stored in a .mat file. How do I display them in the GUI listbox uisng GUIDE? What codes can I use to achieve this?
1 Comment
Adam
on 23 Jun 2017
The documentation contains various examples of doing things with GUIDE and of using listboxes if you do the obvious searches.
Answers (1)
What have you tried so far?
How should the loading be triggered? Does the user select the MAT file individually or should it be loaded automatically when Matlab starts?
Insert this either in the OpeningFcn or in the callback of another control:
Data = load(FileName); % However FileName is determined
set(handles.listbox1, 'String', Data.WhatToDisplay);
Currently only such a vague answer is possible. Explain more details and show the current code to get more help.
Categories
Find more on Whos 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!