Top 5% contributor

**48**Contributions

See: doc copyfile

*2626* views

Responded 5 years ago

Given A: idx = A~=0; c = sum(idx,1); r = sum(idx,2);

accepted

0

Answered 5 years ago

How about this one: [d ix] = sort(C{12}); newC = cellfun(@(x)x(ix),C,'un',0);

accepted

0

Answered 5 years ago

One way: r = find(ismember(cell2mat(C)',[7;4;2]','rows')) -Nathan

*2134* views

Responded 6 years ago