I have a 4D array in matlab something like this,
test(:,:,1,1) =
0
test(:,:,2,1) =
0
test(:,:,3,1) =
0
test(:,:,4,1) =
0
test(:,:,5,1) =
0
test(:,:,1,2) =
0
test(:,:,2,2) =
0
test(:,:,3,2) =
0
test(:,:,4,2) =
0
test(:,:,5,2) =
0
test(:,:,1,3) =
0
test(:,:,2,3) =
0
test(:,:,3,3) =
0
test(:,:,4,3) =
0
test(:,:,5,3) =
0
test(:,:,1,4) =
0
test(:,:,2,4) =
0
test(:,:,3,4) =
0
test(:,:,4,4) =
0
test(:,:,5,4) =
0
test(:,:,1,5) =
0
test(:,:,2,5) =
0
test(:,:,3,5) =
0
test(:,:,4,5) =
0
test(:,:,5,5) =
0
K>> test
test(:,:,1,1) =
0
test(:,:,2,1) =
0
test(:,:,3,1) =
0
test(:,:,4,1) =
0
test(:,:,5,1) =
0
test(:,:,1,2) =
0
test(:,:,2,2) =
0
test(:,:,3,2) =
0
test(:,:,4,2) =
0
test(:,:,5,2) =
0
test(:,:,1,3) =
0
test(:,:,2,3) =
0
test(:,:,3,3) =
0
test(:,:,4,3) =
0
test(:,:,5,3) =
0
test(:,:,1,4) =
0
test(:,:,2,4) =
0
test(:,:,3,4) =
0
test(:,:,4,4) =
0
test(:,:,5,4) =
0
test(:,:,1,5) =
0
test(:,:,2,5) =
0
test(:,:,3,5) =
0
test(:,:,4,5) =
0
test(:,:,5,5) =
0
Now I want to get an array, something like this
ans =
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
Is there a simple way to convert the dimentions. I am very much new to multidimensional arrays in Matlab. Please let me know if anyone knows of any solution.