Community Profile

Contact

clc,clear f = @(x)((15*x)./(4*x.^2-3*x+4)); x = fminbnd(f, 0, 10); x y=f(x); y this code returns x...

3 Answers

0

Asked 4 years ago

how can i make matlab find the correct minimum of the function?

Answered 4 years ago

clc,clear f = @(x)((15*x)./(4*x.^2-3*x+4)); x = fminbnd(f, 0, 10); x y=f(x); y i think it should find x=0 and ...

clc,clear % Newton Raphson solution of two nonlinear algebraic equations % set up the iteration error1 = 1.e8; xx(1) = 0; % init...

4353 views

Posted 4 years ago

f = @(x)(-(1.0/((x-0.3).^2+0.01)+1.0/((x-0.9).^2+0.04))); x = fminbnd(f, -1, 2); x y=f(x); y x = -1:0.3:2 y ...

2 Answers

x = -1:0.3:2 y = -(1/((x-0.3).^2+0.01)+1/((x-0.9).^2+0.04)) plot(x,y) when i run the program, i get this error ?...

1 Answers

x = 0:1:10 y = (15*x)/(4*x.^2-3*x+4) plot(x,y) why can't i plot this? please help me.

clc,clear % Newton Raphson solution of two nonlinear algebraic equations % set up the iteration error1 = 1.e8; xx(1) = 0; % in...

0 Answers