How to find minimum and maximum of a fitted curve.??
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chris Martin
am 29 Sep. 2014
Kommentiert: Jan Dabrowski
am 30 Nov. 2020
I have fitter my time series using fourier option of fit command, I want to know how to find the minimum and maximum of the fitted curve
2 Kommentare
Akzeptierte Antwort
Matt J
am 29 Sep. 2014
Bearbeitet: Matt J
am 29 Sep. 2014
My approach would be to,
- Sample the curve finely (much higher sampling rate than the frequency of the fitted curve) and get approximate locations of the global max and min from the samples using the commands min() and max()
- Refine the approximation from Step 1 using fzero. That is, use fzero to find where the derivative of the fitted curve is zero, using the points from Step 1 as the intial guesses.
3 Kommentare
Matt J
am 30 Sep. 2014
Bearbeitet: Matt J
am 30 Sep. 2014
That's what my 2-step Answer told you how to do. Use feval in Step 1, or the other methods mentioned here,
to evaluate the curve at many points. When you have a vector of samples of hte curve, you can apply max() or min() to find approximate locations of the max and min. Then, in Step 2, you can refine with fzero, if you wish.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!