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
답변 (1개)
Image Analyst
2017년 8월 17일
To show your cell array of strings and numbers in your table called uitable1, do this:
handles.uitable1.data = yourCellArray;
댓글 수: 4
Yusran Said
2017년 8월 17일
편집: Image Analyst
2017년 8월 17일
Image Analyst
2017년 8월 17일
To get the data back out of the table, use get():
data = get(handles.uitable1, 'Data');
Yusran Said
2017년 8월 17일
편집: Yusran Said
2017년 8월 17일
Yusran Said
2017년 8월 17일
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!