how to insert value in uitable
이전 댓글 표시
i have uitable with 5 columns and 2 rows,how can i insert a value in the fifth column and firt row.
is that possible ?
thank you.
채택된 답변
추가 답변 (2개)
t=handles.uitable1;
p=questdlg('options ','options menu','yes','no','no')
/* asking whether to enter data directly or to enter data in wanted row and column*/
switch p
case 'yes'
k=input('enter values as matrix');//enter data directly as matrix//
set(t,'Data',k);
case 'no' k=[ ; ; ];
set(t,'Data',k);
i=input('enter row'); %row no.
j=input('enter column'); //column no.
a=input('enter value to be inserted');//
value k(i,j)=a;
set(t,'Data',k);
end
option no will make data to enter as per wanted row and column if true % code end
shiva sai
2017년 5월 13일
0 개 추천

댓글 수: 2
shiva sai
2017년 5월 13일
option no in question dialog box will make data to enter as per wanted row and column if true
best16 programmer
2017년 5월 13일
카테고리
도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!