フィルターのクリア

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

1 回表示 (過去 30 日間)
tafteh
tafteh 2013 年 1 月 14 日
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);
tafteh
tafteh 2013 年 1 月 14 日
cheers, it works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by