MATLAB: Converting from 1 x n x 3 to n x 3

convert

I have a file with the data as image one. But my code will only work if the data is in a n x 3 matrix (e.g. image 2)

Best Answer

squeeze(your_matrix)
eg: squeeze(1xnx3) gives you nx3 matrix