How do I create a GUI to plot graphs using data stored in .mat file?
显示 更早的评论
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 个评论
Adam
2017-6-23
The documentation contains various examples of doing things with GUIDE and of using listboxes if you do the obvious searches.
回答(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.
类别
在 帮助中心 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!