Display matrix with row and column labels
Show older comments
Hi all,
Is there a convenient way to display a matrix with row and column labels in the Matlab terminal? Something like this:

In the second row it will calculate x^2+4 also.
I know it is easily can be shown with the code:
x = 1:100;
table = [x; x.^2+4]
But it seems a bit nasty.
I will be happy if you will able to help. Thanks...
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!