how to align text in a table cell
Mostrar comentarios más antiguos
hay I create a table in a GUI, this table contains data. that aligns the center of cells, so how I want to align text left in the cell
2 comentarios
Oleg Komarov
el 1 de Jun. de 2011
Do you want to align numbers or strings to the left?
Can you provide an example of what you've done?
tou
el 4 de Jun. de 2011
Respuestas (3)
Jan
el 4 de Jun. de 2011
1 voto
The display of your above text looks very strange in my browser. A picture would be better.
Walter Roberson
el 1 de Jun. de 2011
0 votos
Set the format for that column to '%15s' or whatever you want the width to be. Strings which are shorter than that number will be right-padded with spaces.
2 comentarios
tou
el 4 de Jun. de 2011
Walter Roberson
el 4 de Jun. de 2011
set(handles.uitable, 'ColumnFormat', {'char',[],[],[]} );
tou
el 4 de Jun. de 2011
Categorías
Más información sobre LaTeX 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!