Error when i use findpeaks

조회 수: 4 (최근 30일)
Julen Aramendi
Julen Aramendi 2021년 7월 14일
댓글: Julen Aramendi 2021년 7월 15일
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.

채택된 답변

dpb
dpb 2021년 7월 14일
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.

추가 답변 (0개)

카테고리

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