Community Profile |

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

accepted

2

Answered 5 months ago

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

accepted

2

Answered 6 months ago

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

accepted

2

Answered 7 months ago

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

accepted

2

Answered 9 months ago

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

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 1 year ago

B = C*M'

accepted

2

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

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

accepted

2

Answered 1 year ago

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

accepted

2

Answered 2 years ago

m = structfun(@max,Graph);

accepted

2

Answered 2 years ago

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

accepted

2

Answered 2 years ago

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

accepted

2

Answered 2 years ago

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

accepted

2

Answered 3 years ago

|doc feval| |doc eval| eg a = 'size'; [s1 s2] = feval(a,[1 2 3])

accepted

2

Answered 3 years ago

A = 1:5; out = tril(toeplitz(A))

accepted

2

Answered 3 years ago