how to find corresponding values
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sagar Dhage
le 3 Juil 2014
Réponse apportée : Sagar Dhage
le 3 Juil 2014
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')
0 commentaires
Réponse acceptée
Mischa Kim
le 3 Juil 2014
Sagar, isn't
T(locs_Fx)
what you are looking for? These are the T-values corresponding to the peaks. Am I missing something?
0 commentaires
Plus de réponses (1)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!