how to align text in a table cell
15 views (last 30 days)
Show older comments
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 Comments
Oleg Komarov
on 1 Jun 2011
Do you want to align numbers or strings to the left?
Can you provide an example of what you've done?
Answers (3)
Jan
on 4 Jun 2011
The display of your above text looks very strange in my browser. A picture would be better.
0 Comments
Walter Roberson
on 1 Jun 2011
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 Comments
See Also
Categories
Find more on Migrate GUIDE Apps 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!