MATLAB: Split one matrix to 2 matrix split array Hello, I have matrix called A 74X2 and I need 2 Matrix B,C 74X1 each one. How I can split matrix A to B (column 1 of A) and C (column 2 of A)? Thank you! Best Answer B=A(:,1)C=A(:,2)Read the documentation Related SolutionsMATLAB: Splitting matrix A in Matrix B and C based on column 2 values ind = A(:,2)>=47;B = A(ind,:);C = A(~ind,:); MATLAB: Split matrix A = randi(1800,801,3);% A - Let your matrix.A1 = A(1:end-1,:); % for this is case - size of A - [801x3]outDouble3d = permute(reshape(A1.',3,100,[]),[2 1 3]);oroutCell = mat2cell(A,[100*ones(fix(size(A,1)/100),1);1],3)ADDn = 89;[m,k] = size(A);t = rem(m,n);if ~t, t = []; endoutCell = mat2cell(A,[n*ones(fix(m/n),1);t],k) Related QuestionCreating a matrix by some other matricesMatrix manipulation: split matrix in vectorsSplitting a matrix into 2 sub matrices based on row numberMatrix split in vectorSplit a diagonal matrix
Best Answer