how to find corresponding values

조회 수: 1 (최근 30일)
Sagar Dhage
Sagar Dhage 2014년 7월 3일
답변: Sagar Dhage 2014년 7월 3일
I have values for Fx and T. I have found out the peaks in Fx using 'Findpeaks', stored in [pks_Fx, locs_Fx]. Now I have to find values of T corresponding to pks_Fx. I tried but couldn't succeeds. Pls help.
script is as follow: [pks_Fx, locs_Fx]= findpeaks(Fx,'minpeakheight',350); figure plot(T,Fx,T(locs_Fx),pks_Fx,'rv','MarkerFaceColor','r'); grid on xlabel('T'); ylabel('Fx') title('Find All Peaks'); legend('FX','Peaks')

채택된 답변

Mischa Kim
Mischa Kim 2014년 7월 3일
Sagar, isn't
T(locs_Fx)
what you are looking for? These are the T-values corresponding to the peaks. Am I missing something?

추가 답변 (1개)

Sagar Dhage
Sagar Dhage 2014년 7월 3일
Oh yes. Thank a lot.. Im a new learner, so couldn't find that time.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by