load specific data from mat file to GUI table

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

Respuestas (1)

Image Analyst
Image Analyst el 17 de Ag. de 2017
To show your cell array of strings and numbers in your table called uitable1, do this:
handles.uitable1.data = yourCellArray;

4 comentarios

Yusran Said
Yusran Said el 17 de Ag. de 2017
Editada: Image Analyst el 17 de Ag. de 2017
How about to get specific data? I successfully show the data from mat file to gui table with this code:
myData = load('dataplat.mat');
set(handles.uitable1,'Data',myData.raw);
To get the data back out of the table, use get():
data = get(handles.uitable1, 'Data');
Yusran Said
Yusran Said el 17 de Ag. de 2017
Editada: Yusran Said el 17 de Ag. de 2017
not to get data from table, i just wanna get specific data from mat file than show in gui table, that mat file is Database, i need query for get specific data to show in gui table n first column is primary key. note: u can see data in image in the list question, its just database i create from ms excel, than convert to mat file.
Yusran Said
Yusran Said el 17 de Ag. de 2017
i have new code for showing all data, can u help me with this new question https://www.mathworks.com/matlabcentral/answers/353031-load-mat-table-to-gui-table

Iniciar sesión para comentar.

Categorías

Preguntada:

el 17 de Ag. de 2017

Comentada:

el 17 de Ag. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by