Solved

# Matlab fzero help

Posted on 2003-03-30

Hi,

I am trying to solve a nonlinear equation using matlab. The function

that I am using is 'fzero'. I start with an initial guess 'x0'. Due to

the nature of the nonlinear equation, I always get the final answer

less than x0, which is physically meaningless.

There are values greater than x0 which satisfy the equation. However,

I always get lesser values. Could someone please tell me how to

write a code for that.

Here is my code which returns lesser values:

options=optimset('TolX',1e-20);

x0=33e-20;

x1=fzero('f',x0,options);

'f' is function which contains the nonlinear equation.

Thanks a lot!