MATLAB: How to combine multiple nx1 size of matrix into one matrix matrix As topic mentioned, i want to combine a matrix from many nx1 size matrix, i would like to have a script Many Thnkas, Alex Best Answer could you plz exlpain more about vertcat(matrices{:}); by showing an example. >> matrices={[1,2;3 4],[5,6;7,8]}; >> vertcat(matrices{:}) ans = 1 2 3 4 5 6 7 8 Related SolutionsMATLAB: Combine two cell array of different dimension A={1,2};B={4,5,6};C=cat(2,A,B)C = [1] [2] [4] [5] [6]2 in cat is the direction you want to concatenate in, 1 does it vertically, which doesn't work because the cell doesn't have the same number of columns! MATLAB: Cell2mat error C = [{'1 1 3 2' } {'2 3 5 2' } {'3 4 5 3' } {'4 1 4 3 '}] ;C = cell2mat(cellfun(@str2num,C,'UniformOutput',false)) Related QuestionFinding average between TFunct1,TFunct2,TFunct3Repeat a matrix in defined mannerCombine matrix in matlabNew array from several arrays
Best Answer