Top 1% contributor

**3,095**Contributions

setdiff(a,b,'rows')

accepted

3

Answered 8 months ago

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

accepted

3

Answered 9 months ago

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

accepted

2

Answered 1 year ago

out = sortrows(A,[3,1]);

accepted

2

Answered 1 year ago

a = [4, 3, -8]; [~,ii] = max(abs(a)); out = a(ii);

accepted

2

Answered 1 year ago

out = pippo{ismember(pippo(:,1),'nimp'),2};

accepted

2

Answered 2 years ago

A =[ 1 7 13 2 8 14 3 9 15 4 10 16 5 11 17 ...

accepted

2

Answered 2 years ago

W = triu(squeeze(sqrt(sum(bsxfun(@minus,data,permute(data,[3 2 1])).^2,2))));

accepted

2

Answered 2 years ago

y = 4; xout = roots([3,2,4 - y])

accepted

2

Answered 2 years ago

B = C*M'

accepted

2

Answered 2 years ago

reshape([a;b],1,[]); or out = zeros(1,numel(a)*2); out(1:2:end) = a; out(2:2:end) = b;

accepted

2

Answered 2 years ago

t = isnan(Ax); A1 = Ax; A1(t) = 0; Ax_avg = sum(A1,2)./sum(~t,2);

accepted

2

Answered 2 years ago