MATLAB: Creating a Table with labels for each column

creating and labeling a table

So I have this matrix that is set up like so
Column1 ———–Column 2———-Column 3
1 0 28.3784
2 0 30
3 0 22.7027
What I want to do is take this matrix and put it into a table and have those columns labeled. App Num for column 1, gender for column 2, and gpa for column 3. I also need to put a title on the table that describes what is going on. Any ideas?
Thank you for your time.

Best Answer

Avoid the \t in the header line, because they do not have a fixed width. '%12s' is smarter, because it works like the width specificator in the '%12.4f' format string.
Related Question