Suppose we have an 3D-array r=ones(m,n,k). How to make a column of all the values of "r" in the following form? example,
for r=ones(2,2,2)the desired table should look like: A= [r(1,1,1), r(2,1,1), r(1,2,1), r(2,2,1), r(1,1,2), r(2,1,2), etc, ..] .
X-grid number changes first, then changes Y-grid number, and Z-grid number is "the weakest".
Best Answer