Top 1% contributor

**3,477**Contributions

setdiff(a,b,'rows')

accepted

3

Answered 1 year ago

A(A==min(A(:))) = 0

accepted

3

Answered 1 year ago

syms n subs(n*factorial(n-1),1000)

accepted

3

Answered 2 years ago

x =[ 22 23 24 23 24 23 24 22 22 23 23 23]; a = unique(x); out = [a,histc(x(:),a)];

accepted

3

Answered 4 years ago

M - your matrix M(M > a) = b;

accepted

3

Answered 4 years ago

try use syms r real ... M=b.'*a

accepted

3

Answered 4 years ago

k = { 'bc' 'ec' 'ed' 'cd' 'dc' 'ec' 'bc' 'be' 'ed' 'cd' 'ed' 'ae' 'bc' 'ec' 'ba' 'bb' ...

accepted

3

Answered 5 years ago

I correctly understand: out = cellfun(@(x)a(:).'*a(:),numcell);

accepted

2

Answered 17 hours ago

idx = find(cellfun(@(x)strcmp(x,chan_group_p1),groups));

accepted

2

Answered 22 days ago

A= [1 2 3 4;5 6 7 8;9 10 11 12 ; 13 14 15 16]; out = conv2(A,[1 1 1],'valid')

accepted

2

Answered 3 months ago

a = {'204' '203' '191' '133' '63' '-28' '-109' '-145' '-196' '...

accepted

2

Answered 4 months ago

>>fun0 = @(x) 1 - 3/4*x; >> fzero(fun0,1) ans = 1.3333 >>

accepted

2

Answered 5 months ago

Y = X; Y([diff(Z(:))~=0;false]) = 0

accepted

2

Answered 5 months ago