![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/3957434_1525376243657_DEF.jpg)
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