how to display data in a variable in the table using the uitable vertically(columnwise)?
Show older comments
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);
1 Comment
Tej Parekh
on 30 Apr 2013
Accepted Answer
More Answers (0)
Categories
Find more on Develop Apps Programmatically in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!