findpeaks: Error using findpeaks (line 43) Input arguments must be 'double'.

조회 수: 2 (최근 30일)
Hi all,
I am recording a Blood Volume Pulse signal and willing to find the indexes of its local maxima. The data (Blood Volume Pulse signal) is a two column matrix, signal magnitude and the corresponding time value.
data_no = data(:,1);
Using findpeaks(data_no) I get the following error:
Error using findpeaks (line 43)
Input arguments must be 'double'.
I appreciate if anyone help me understanding this error!
Thanks,

채택된 답변

Shashank Prasanna
Shashank Prasanna 2013년 1월 14일
편집: Shashank Prasanna 2013년 1월 14일
what is:
>> class data_no
make sure it is double
  댓글 수: 3
Shashank Prasanna
Shashank Prasanna 2013년 1월 14일
편집: Shashank Prasanna 2013년 1월 14일
you can just do:
d = double(data_no);

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

추가 답변 (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