MATLAB Answers

How do I add row and column separators, and a border in a table so it looks like a real table?

5 views (last 30 days)
Zuzanna Fernandez
Zuzanna Fernandez on 18 Sep 2019
Answered: Walter Roberson on 18 Sep 2019
I need my table to look like this:
Capture.PNG
Also, how do I change what the column headers say, and output the actual percent sign, versus making Matlab think I want to type a comment?
Lastly, how do I make my data appear in the center of the columns? I am using Matlab 2019a

  0 Comments

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 18 Sep 2019
You cannot do any of those things in r2019a.
As of R2019b it is possible to use variable names that are not matlab identifiers, so putting in the % would be possible.
table() objects are not designed for presentation purposes.
See uitable(). See Report Generator

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by