Top 1% contributor

**3,411**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

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 4 years 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 2 months ago

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

accepted

2

Answered 3 months ago

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

accepted

2

Answered 4 months ago

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

accepted

2

Answered 4 months ago