Community Profile |

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

accepted

3

Answered 22 days ago

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

accepted

2

Answered 9 months ago

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

accepted

2

Answered 9 months ago

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

accepted

2

Answered 10 months ago

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

accepted

2

Answered 1 year 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 2 years ago

m = structfun(@max,Graph);

accepted

2

Answered 3 years ago

Can so? out = sum(cellfun(@(x)all(ismember([2 5],x)),D));

accepted

2

Answered 3 years ago

out = A(:,[1 7 9])

accepted

2

Answered 3 years ago

a = [10 20 30 40]; b = kron(a,ones(3,2))

accepted

2

Answered 3 years ago