MATLAB: How to make a row matrix from matlab generated data.

:row matrixs9:

Hi all,
I have a matlab code that outputs the reselts in the form of s(:,:,1) = 'value' , s(:,:,2)='value' , s(:,:,3)='value' and so on.
Now, I want to combine all these " S " to form a single row matrix or a single column matrix.
thanks…

Best Answer

reshape(S,1,[]) % row vector