Skip to main content

Section 3.5 The fzero MATLAB command

MATLAB defines its own command fzero to find zeros of functions. A rough description of how fzero works is at Sec. 4.7 of our textbook.

Most of the times, all you need is to call the function as fzero(f,x0), where f is a function and x0 an initial condition. For instance: