Finding nearest local max. and min. of a polynomial function
4 views (last 30 days)
Show older comments
Hi everyone,
I have a fitted high order single variable polynomial function (ex. amp vs. time). At a specific point of interest (or time), the amp deceases as time get bigger and increases as time gets smaller. How do I find the nearest local max. (or the point where the amp stop increasing) and local min. (or the point where the amp stop deceasing) around that point of interest?
Below is what I have so far...
% p is my polynomial coefficients
syms x
sc=poly2sym(p,x);
poly = matlabFunction(sc)
fminbnd(poly,a,b) % for finding min. Don't know how to find max. yet
The problem is I don't really know the boundary [a,b]. If I set the boundary to big, there might be other max. and min., but I just want the nearest max. and min. around the point of interest.
Any idea?
thanks!
0 Comments
Answers (1)
See Also
Categories
Find more on Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!