how to display data in a variable in the table using the uitable vertically(columnwise)?
Mostrar comentarios más antiguos
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 comentario
Tej Parekh
el 30 de Abr. de 2013
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Develop Apps Programmatically en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
