Top 1% contributor

**735**Contributions

One way: numel(num2str(A))

accepted

6

Answered 5 years ago

x = .4 * rand(100,1)-.2;

accepted

2

Answered 4 years ago

syms s >> expand((s+4)*(s+0.5-0.2*i)*(s+0.5+0.2*i)) ans = s^3 + 5*s^2 + (429*s)/100 + 29/25 >> fac...

accepted

2

Answered 4 years ago

c = b'*a

accepted

2

Answered 5 years ago

I agree, more information is needed. Post some sample code

*20138* views

Responded 6 years ago

Your equations are not independent. The second is 2 times the first

accepted

1

Answered 2 years ago

a = magic(3); padarray(a,[2 1]) ans = 0 0 0 0 0 0 0 0 0 0 0 ...

accepted

1

Answered 4 years ago

set(gca,'XTick',[])

accepted

1

Answered 4 years ago

x = mean(reshape(y,[],30)).' %y is 3000 x 1

accepted

1

Answered 5 years ago

http://www.mathworks.com/moler/chapters.html

accepted

1

Answered 5 years ago

lsqcurvefit() % optimization toolbox or lsqnonlin()

accepted

1

Answered 5 years ago