フィルターのクリア

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

16 ビュー (過去 30 日間)
Chris Martin
Chris Martin 2014 年 9 月 29 日
コメント済み: Jan Dabrowski 2020 年 11 月 30 日
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 件のコメント
Matt J
Matt J 2014 年 9 月 29 日
編集済み: Matt J 2014 年 9 月 29 日
You have many open threads on your profile, many of which have had responses. You should consider closing some of them unless the answers given there really didn't help you. It's hard to imagine though, that so many answers were ineffective.
Chris Martin
Chris Martin 2014 年 11 月 13 日
編集済み: Chris Martin 2014 年 11 月 13 日
If the answer is not suitable then what can I do..

サインインしてコメントする。

採用された回答

Matt J
Matt J 2014 年 9 月 29 日
編集済み: Matt J 2014 年 9 月 29 日
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.
  3 件のコメント
Matt J
Matt J 2014 年 9 月 30 日
編集済み: Matt J 2014 年 9 月 30 日
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.
Jan Dabrowski
Jan Dabrowski 2020 年 11 月 30 日
Thanks man, you helped me a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by