find X of corresponding local minima

1 回表示 (過去 30 日間)
Sagar Dhage
Sagar Dhage 2014 年 7 月 8 日
コメント済み: Sagar Dhage 2014 年 7 月 8 日
I have Fx values (ie Y) and corresponding T values (X). To findout the local minima, i have used following prog. [Maxima,MaxIdx] = findpeaks(Fx); FxInv = 1.01*max(Fx) - Fx; [c,MinIdx] = findpeaks(FxInv); Minima = Fx(MinIdx); a= Minima(Minima >100); % further find out values of peak of Fx more than 100.
How I can find T values(X), corresponding to a? i tried b=T(a) but it doesn't work

採用された回答

Jos (10584)
Jos (10584) 2014 年 7 月 8 日
Finding minima of a signal X is the same as finding the maxima of the signal -X
  1 件のコメント
Sagar Dhage
Sagar Dhage 2014 年 7 月 8 日
thanks

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

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 8 日
You can use
[a,idx]=findpeaks(Fx,'MINPEAKHEIGHT',100)
b=T(idx)
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 7 月 8 日
[a,idx]=findpeaks(-Fx,'MINPEAKHEIGHT',100)
b=T(idx)
Sagar Dhage
Sagar Dhage 2014 年 7 月 8 日
ok. thanks. it works

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by