GUI - output in uitable
조회 수: 1 (최근 30일)
이전 댓글 표시
can someone help me to correct the coding below,
clc
format long g
T=str2num(get(handles.edit4,'String'));
table=get(handles.uitable1,'Data');
X=table(:,1);
Y=table(:,2);
Z=table(:,3);
Lat1=(X-0);
Long1=(Y-0)
HS=(T-(Z));
set(handles.uitable3,'String',Lat1,Long2,HS); <-- coding for this line have problem to store output in uitable.
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 6월 9일
T = str2num(get(handles.edit4,'String'));
table = cell2mat(get(handles.uitable1,'Data'));
X=table(:,1);
Y=table(:,2);
Z=table(:,3);
Lat1=(X-0);
Long1=(Y-0)
HS=(T-(Z));
set(handles.uitable3,'Data', num2cell([Lat1,Long2,HS]) );
댓글 수: 3
Walter Roberson
2015년 6월 9일
T = str2num(get(handles.edit4,'String'));
table = get(handles.uitable1,'Data');
if iscell(table); table = cell2mat(table); end
X=table(:,1);
Y=table(:,2);
Z=table(:,3);
Lat1=(X-0);
Long1=(Y-0)
HS=(T-(Z));
set(handles.uitable3,'Data', [Lat1,Long1,HS] );
참고 항목
카테고리
Help Center 및 File Exchange에서 Mapping Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!