Error when i use findpeaks
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Julen Aramendi
 le 14 Juil 2021
  
    
    
    
    
    Commenté : Julen Aramendi
 le 15 Juil 2021
            This 3 errors appear:
Error using findpeaks
Expected X to be strictly increasing.
Error in findpeaks>parse_inputs (line 241)
      validateattributes(Xin,{'numeric'},{'real','finite','vector','increasing'},'findpeaks','X');
Error in findpeaks (line 136)
  = parse_inputs(isInMATLAB,Yin,varargin{:});
My code is this:
Aceleracion=ACCVSM(:,1);
Tiempo=ts(:,1);
plot(ts,ACCVSM);
findpeaks(Tiempo,Aceleracion);
Thank you.
0 commentaires
Réponse acceptée
  dpb
      
      
 le 14 Juil 2021
        findpeaks(Aceleracion,Tiempo);
Unlike plot() and many other functions, since findpeaks can be called without a corollary time/frequency vector, the data vector is the first argument, the time/frequency vector second.
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

