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일

0 개 추천

Finding minima of a signal X is the same as finding the maxima of the signal -X

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 8일

1 개 추천

You can use
[a,idx]=findpeaks(Fx,'MINPEAKHEIGHT',100)
b=T(idx)

댓글 수: 3

Sagar Dhage
Sagar Dhage 2014년 7월 8일
its finding peaks with min height of 100. It gives Local maxima. I want local minima and its corresponding T value (X)
[a,idx]=findpeaks(-Fx,'MINPEAKHEIGHT',100)
b=T(idx)
Sagar Dhage
Sagar Dhage 2014년 7월 8일
ok. thanks. it works

댓글을 달려면 로그인하십시오.

질문:

2014년 7월 8일

댓글:

2014년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by