- 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.
How to find minimum and maximum of a fitted curve.??
30 visualizzazioni (ultimi 30 giorni)
Matt J il 29 Set 2014
Modificato: Matt J il 29 Set 2014
My approach would be to,