Community Profile |

setdiff(a,b,'rows')

accepted

3

Answered 4 months ago

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

accepted

3

Answered 5 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

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

out = min(structfun(@(x)min(x(:)),structure_1));

accepted

2

Answered 3 years ago

m = structfun(@max,Graph);

accepted

2

Answered 3 years ago