Rearranging and printing matrices
Show older comments
Hello! I'm stuck on a problem that I thought would be really simple. I have a matrix A =
8 1 6
3 5 7
4 9 2
and would like it to be reprinted as:
1 1 8
1 2 3
1 3 4
2 1 1
2 2 5
2 3 9
3 1 6
3 2 7
3 3 2
with a single space between each number. Regardless of what I've tried I can't get it to print the way I would like. Any ideas? Thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!