MATLAB: Hi i have a question for example I have these two matrices a and b and I want to join them in one, how could I do that matrix array a=[1;3;5;7;9]; b=[2;4;6;8;10]; Resulting matrix c=[1;2;3;4;5;6;7;8;9;10]; Best Answer a=[1;3;5;7;9]; b=[2;4;6;8;10];c = [a b] % concatenate. only works because a and b have the same number of rowsc = c.' % transposec = c(:) % reshape Related SolutionsMATLAB: Do a matrix,array This works:B = reshape(A', 1, []); MATLAB: Joining two columns in a way of row by row A=[1;2;3;4;5]B = [6;7;8;9;10]C=[A B]'C=C(:)% orC=reshape([A B]',[],1) Related QuestionRepeat parts of a matrixHow i can have 2 points joining with quiverHow to store elements from 2 arrays into another arrayAnother Issue with Join
Best Answer