LuKr
Followers: 0 Following: 0
Feeds
답변 있음
Split array according to one column values
B=A(cellfun(@(x) isequal(1,x),{A{:,2}}),:) C=A(cellfun(@(x) isequal(2,x),{A{:,2}}),:) Maybe like this?
Split array according to one column values
B=A(cellfun(@(x) isequal(1,x),{A{:,2}}),:) C=A(cellfun(@(x) isequal(2,x),{A{:,2}}),:) Maybe like this?
6년 초과 전 | 1
답변 있음
How to clear out rows of zeros in a matrix?
If A is your matrix: A(A(:,1)==0,:)=[]
How to clear out rows of zeros in a matrix?
If A is your matrix: A(A(:,1)==0,:)=[]
6년 초과 전 | 0