MATLAB: Could anyone help me how to combine data in two columns matrix manipulation A=[1; 2; 3] B=[4 ; 5; 6] I want to have the result in the following manner [1 4; 2 5; 3 6] could anyone please help me on this. Best Answer Res = [A B] Related SolutionsMATLAB: Could anyone help me how to display all the numbers inaddition to the numbers present. >> A = [1,2;1,3;2,5;2,4;3,5;4,6;4,5]A = 1 2 1 3 2 5 2 4 3 5 4 6 4 5>> F = @(v)[v,setdiff(1:6,v)];>> M = cell2mat(cellfun(F,num2cell(A,2),'uni',0))M = 1 2 3 4 5 6 1 3 2 4 5 6 2 5 1 3 4 6 2 4 1 3 5 6 3 5 1 2 4 6 4 6 1 2 3 5 4 5 1 2 3 6 MATLAB: Merge arrays into a new one with a specific element sequence A=[1; 2; 3]B=[4 ;5; 6]C=[A B]'C=C(:)OrA=[1; 2; 3]B=[4 ;5; 6]C=reshape([A B]',[],1) Related QuestionCould anyone help me how to store the result together in single matrix.Finding mean for multiple matricesFor Loop induced matrix manipulation , Relative index matrixHow to combine 2 for loopsCould anyone help me how to rearrange the matrix in the descending order with respect to the values in another matrix.
Best Answer