HI.. I have a 3D array like this:
val(:,:,1) = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22 0 0 1 0 0 0 0 0 33 0 -1 0 0 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
The problem is that i want all values to be in same row. e.g. in val(:,:,1) it should be 33,22,-1,-1,1 in 6th row of matrix. Is there any way to do this? I am new to matlab so sorry if my question sounds awkward.
Best Answer