MATLAB: How to return from reshape function

matrix reshape

Hi all. I reshaped my data matrix y(24000×1) like this:
x=reshape(y,150,160);
I changed some datas of x and I want to return it to y(24000×1). Is there any code to do that?

Best Answer

y=rand(24000,1)
x=reshape(y,150,160)
out=x(:)