how to display data in a variable in the table using the uitable vertically(columnwise)?
古いコメントを表示
hello, i want to create a table using uitable function that takes the name of the students from the .mat variable in the workspace and display it in the table vertically. i can retrieve the data but it is displayed in a single row(horizontally). the variable contains 5 names which should be displayed vertically but it is displaying horizontally. can anybody tell me how to edit the table so that it displays the data vertically. I attach the demo code of what is happening here. plz repli as soon as possi.......
f = figure('Position',[100 100 400 150]);
load PersonName; %.mat file containing the names of student.
date=datestr(now,'dd');
columnname = {'StudentID', 'StudentName', date};
columnformat = {'char', 'bank', 'char'};
columneditable = [true true true];
t = uitable('Units','normalized','Position',...
[0.1 0.1 0.9 0.9],...
'ColumnName', columnname,...
'ColumnFormat', columnformat,...
'ColumnEditable', columneditable,...
'RowName',[],'Data',sname);
採用された回答
その他の回答 (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!
