How do you align column in a matrix?
이전 댓글 표시
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
James Tursa
2021년 6월 18일
Will you always know how many decimal digits you want printed? Or will this depend on the values in Node?
Mo A
2021년 6월 18일
Stephen23
2021년 6월 18일
"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
2021년 6월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!