Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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,

Réponse acceptée

Shashank Prasanna
Shashank Prasanna le 14 Jan 2013
Modifié(e) : Shashank Prasanna le 14 Jan 2013
what is:
>> class data_no
make sure it is double
  3 commentaires
Shashank Prasanna
Shashank Prasanna le 14 Jan 2013
Modifié(e) : Shashank Prasanna le 14 Jan 2013
you can just do:
d = double(data_no);
tafteh
tafteh le 14 Jan 2013
cheers, it works.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by