Hi, I have a problem putting several matrices of different/same dimensions together to be represented by a single vector. The matrices have been constructed by reshaping multidimensional data to fit e.g. a 6*6*6 matrix. Now I need a vector containing all the given information. My result allways creates a matirx with the dimension 30*6*6 since I have 5 matrices as input if I use the line Y=[Matrix1; Matrix2;...]; and 6*30*6 if I use Y=[Matrix1, Matrix2,...]; How do I get MATLAB to create a vector containing all dimensions of all input matrices? I'm quite new to MATLAB so I would be thankful for every help I could get here.