If no such interval is found, NaN is returned. fzero looks for an interval containing a sign change for fun and containing x0. Where x0 is a scalar value, uses x0 as a starting guess. Calling fzero with such an interval guarantees fzero will return a value near a point where fun changes sign. Where x0 is a vector of length two, assumes x0 is an interval where the sign of fun(x0(1)) differs from the sign of fun(x0(2)). The value x returned by fzero is near a point where fun changes sign, or NaN if the search fails. fun (usually an M-file, built-in function, or an inline object) should take a scalar real value and return a real scalar value when called with feval: f=feval(fun,x). Fzero (MATLAB Function Reference) MATLAB Function Reference
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |