Solving Nonlinear Equation(s) in MATLAB
chemeng.queensu.ca › courses › CHEE222If the nonlinear algebraic system is a polynomial equation, we could use the MATLAB routine roots to find the zeros of the polynomial. Consider the same function f(x) = x3 - 5x2-x +2 that we discussed earlier. The user must create a vector of the coefficients of the polynomial, in descending order, p = [1 5 -1 2]: Then the user can type the ...
Root of nonlinear function - MATLAB fzero
www.mathworks.com › help › optimRoot of nonlinear function collapse all in page Syntax x = fzero (fun,x0) x = fzero (fun,x0,options) x = fzero (problem) [x,fval,exitflag,output] = fzero ( ___) Description example x = fzero (fun,x0) tries to find a point x where fun (x) = 0. This solution is where fun (x) changes sign— fzero cannot find a root of a function such as x^2. example