load specific data from mat file to GUI table
Show older comments
Hello guys,
I want to ask: I need to load specific data from mat file. https://www.mathworks.com/matlabcentral/answers/uploaded_files/85707/image.png
For example a = DD6713MT, then I want to show just this data in the table, there is

How to do that? I don't have any reference code about this. The first column is the key. If a = first column, then show in the gui table is row of a.
ty
Answers (1)
Image Analyst
on 17 Aug 2017
To show your cell array of strings and numbers in your table called uitable1, do this:
handles.uitable1.data = yourCellArray;
4 Comments
Yusran Said
on 17 Aug 2017
Edited: Image Analyst
on 17 Aug 2017
Image Analyst
on 17 Aug 2017
To get the data back out of the table, use get():
data = get(handles.uitable1, 'Data');
Yusran Said
on 17 Aug 2017
Edited: Yusran Said
on 17 Aug 2017
Yusran Said
on 17 Aug 2017
Categories
Find more on Workspace Variables and MAT Files 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!