MATLAB: I have four 1×50 matrices and I want to save them to one 4×50 matrix. How to do this matrixmatrix manipulation I have four 1×50 matrices and I want to save them to one 4×50 matrix. How can I do this? Best Answer for k=1:50 title{k}=sprintf('title%d',k)enda=rand(1,50);b=rand(1,50);c=rand(1,50);d=rand(1,50);M=[title;num2cell(a);num2cell(b);num2cell(c);num2cell(d)] Related SolutionsMATLAB: Arrange and merge cell data arrayfun(@(col) vertcat(YourCell{:,col}), 1:size(YourCell,2), 'Uniform', 0) MATLAB: How to represent a set of matrices into a single cell E = num2cell([A(:), B(:), C(:), D(:)], 2);E = reshape(E, a, b) Related QuestionCreating .mat files with variablesHow to convert cell in matrixHow to do matrix addition of different sizesHow to partially multiply two diffferent dimention matrixProblem with 3D plottingHow to multiply cell arraysI’m asked to find the probability of this problem :(
Best Answer