shows table in gui panel
이전 댓글 표시
Hi
I have made this code to show my table in gui, but the table just pops up and does not show in the gui application
handles.T = table((1:(size(nCoord,1)-1))',x_globalx(:,1),x_globay(:,1),x_globarz(:,1), 'VariableNames',VarNames)
fig = uifigure;
uit = uitable(fig, 'Data',handles.T);
set(handles.uitable1, 'Data', handles.T); ( this is the one i think i have made wrong )
댓글 수: 4
Adam Danz
2020년 2월 17일
It looks like you're using a GUIDE GUI. Please confirm.
The line uit=uitable(...) creates the UI table but the UI table should already exist. So, remove that line.
The set(...) line should be sufficient if the handles are all correct.
polo Mahmoud
2020년 2월 18일
Adam Danz
2020년 2월 18일
"Yes I use GUI"
There are several ways to make a GUI in Matlab. I'm asking specificlly if you've used the guide() method. Based on your variable names, I think this is the case.
"...but it did not work"
I don't know what that means. Did you get an error message(if yes, please share the entire copy-pasted error message)? Did the table data no appear? Did something else happen unexpectedly?
polo Mahmoud
2020년 2월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Programmatically에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!