MATLAB: How to find minimum and maximum of a fitted curve.?

Curve Fitting Toolboxfitmaxmin

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

Best Answer

My approach would be to,
  1. 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()
  2. 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.