How do you align column in a matrix?
Show older comments
I'm trying to create this matrix:

However, I'm gettng this:

This is my code:

I'm sure it has something to do with the format operators but I'm not sure what it is.
Thank you for your help in advance
4 Comments
James Tursa
on 18 Jun 2021
Will you always know how many decimal digits you want printed? Or will this depend on the values in Node?
Mo A
on 18 Jun 2021
Stephen23
on 18 Jun 2021
"This is my code:"
No, that is an image of some code: we cannot run code in an image, nor can we use that matrix.
Please provide code as text.
Mo A
on 18 Jun 2021
Accepted Answer
More Answers (0)
Categories
Find more on Operators and Elementary Operations 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!