Professional Interests: Spacecraft dynamics and control, numerical analysis, simulation, animation

Top 1% contributor

**920**Contributions

57 downloads

7 months ago

suchismita, use a(a<0) = 0;

accepted

2

Answered 1 year ago

Rida, use sum(diag(A(1:3,1:3)))

accepted

2

Answered 2 years ago

Sososasa, use B = A + (A>3)

accepted

2

Answered 2 years ago

Try |b_bin = logical(b(:)'-'0')|

accepted

2

Answered 2 years ago

Symbolically, syms x solve(sin(x) - 0.5 == 0,x) ans = pi/6 (5*pi)/6 Numerically, myfun = @(x) sin(...

accepted

1

Answered 8 months ago

Joachim, use instead [r,c] = find(Z==MinV) % gives two arguments r = 28 14 c = 14 28 which will a...

accepted

1

Answered 11 months ago

Hamid you could use r_min = r(min(find(r*200>246==1))) r_min = 1.3000

accepted

1

Answered 1 year ago

Evelyn, use mean(data(~isnan(data)))

accepted

1

Answered 1 year ago