MATLAB: The question is how to get the following format programming Hi, I have a row, and I want to get a matrix by repeating this row as follow r=[ 1 2 3 4] matrix=[ 1 2 3 4; 1 2 3 4; 1 2 3 4] Best Answer r=[ 1 2 3 4] matrix=repmat(r,3,1) Related SolutionsMATLAB: How can make code to present this following case A = [1 2 3 4;3 2 1 4]B{1} = [1 1 1;1 1 1];B{2} = [2 2 2;2 2 2];B{3} = [3 3 3;4 4 4];B{4} = [4 4 4;3 3 3];Res = cell2mat(B(A)) MATLAB: Format Questions Ac = num2cell(A);Bc = num2cell(B);D = [C;Ac,Bc(1:end-1,:);{'SUM'},Bc(end,:)];E = [D;cell(1,4);{35, 12, 12, 14}]; Related QuestionHow can enlarge a matrixMusic file formatDisplaying system formatHow to repeat a row by a certain factorImage format question
Best Answer