How to enter data into Table in GUI?

조회 수: 3 (최근 30일)
Arun Badigannavar
Arun Badigannavar 2013년 3월 26일
How to enter set of data into table?
  댓글 수: 1
Arun Badigannavar
Arun Badigannavar 2013년 3월 26일
a=10;
b=20;
f = figure('Position',[200 200 400 150]);
dat =a,b;
cnames = {'X-Data','Y-Data','Z-Data'};
rnames = {'First','Second','Third'};
t = uitable('Parent',f,'Data',dat,'ColumnName',cnames,...
'RowName',rnames,'Position',[20 20 360 100]);
how to enter a and b data into table?

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

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 26일
Suppose you had a matrix named DATA that you wanted to set the uitable() to contain. Then,
set( Handle_of_uitable, 'data', num2cell(DATA) )

추가 답변 (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