필터 지우기
필터 지우기

mat file data to GUI table

조회 수: 1 (최근 30일)
Yusran Said
Yusran Said 2017년 8월 9일
댓글: Walter Roberson 2017년 8월 10일
how to show specific row in gui table from mat file, that is identity ppl that have a car, i make license plate recognition, i need to show up the specific data in table if my program succesfull read the number plate i try this but cant show
myData = load('dataplat.mat');
% update the uitable
set(handles.uitable1,'Data',myData.myCellArray);
  댓글 수: 7
Yusran Said
Yusran Said 2017년 8월 10일
편집: Yusran Said 2017년 8월 10일
specific data mean if my program can read succesfull plate, same with database, table will show the data in table from mat file, u can see my data in the picture, there is number plate, name, department n status, my program is video processing plate recognition, if succesfully read same number plate with database, so i want show 1 row data to gui table
Yusran Said
Yusran Said 2017년 8월 10일
that the table must be setting? i change code but get same erorr message,

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2017년 8월 10일
Do not name your gui "table": you are confusing MATLAB, which thinks table() is for creating table objects https://www.mathworks.com/help/matlab/ref/table.html which are not related to the display tables, uitable()
  댓글 수: 2
Yusran Said
Yusran Said 2017년 8월 10일
편집: Walter Roberson 2017년 8월 10일
oh, ok my fault, thanks for answer, but still erorr
Reference to non-existent field 'myCellArray'.
Error in contoh>pushbutton1_Callback (line 84)
set(handles.uitable1,'Data',myData.myCellArray);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in contoh (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)contoh('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback
what should i do?
Walter Roberson
Walter Roberson 2017년 8월 10일
At the command line command
dbstop if error
and run your program. When it stops with the error, look at
fieldnames(myData)
whos -file dataplat.mat
I suspect your dataplat.mat does not contain a variable named "myCellArray".

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by