default output on screen of array of order > 2
Show older comments
Hello
in what follow , the values "5" in the array are irrelevant
consider this command:
A = repmat(5,[2 2 2 2])
A(:,:,1,1) =
5 5
5 5
A(:,:,2,1) =
5 5
5 5
A(:,:,1,2) =
5 5
5 5
A(:,:,2,2) =
5 5
5 5
why , by deafult , Matlab visualizes as a second 2x2 sub-array the sub-array A(:,:,2,1)
and not the sub-array A(:,:,1,2) ?
cioe' as in the following (i manually modified the output) :
A(:,:,1,1) =
5 5
5 5
A(:,:,1,2) =
5 5
5 5
A(:,:,2,1) =
5 5
5 5
A(:,:,2,2) =
5 5
5 5
because seem more natural follow the sequence 1,1 1,2 2,1 2,2
I would really appreciate knowing why this sequence in the output was chosen.
Thankyou very much !
MA
Accepted Answer
More Answers (0)
Categories
Find more on Logical 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!