getpeaks too many input argument

1 回表示 (過去 30 日間)
Phantom.i7
Phantom.i7 2014 年 3 月 5 日
回答済み: Image Analyst 2014 年 3 月 5 日
hi i have this code
>> [x1, Fs] = wavread('chordA1.wav');
>> FFT1 = fft(x1);
>> sq1 = abs(FFT1);
>> sq1 = abs(FFT1);
>> pks1 = getpeaks(sq1,'NPEAKS',20)
when i run the the program it says
??? Error using ==> getpeaks
Too many input arguments.
what seems to be the problem?

採用された回答

Image Analyst
Image Analyst 2014 年 3 月 5 日
Type help getpeaks and see what it says. Or get rid of all arguments and type the left parenthesis and see what intellisense pops up to guide you. Or put the cursor in findpeaks and type control-D and it should take you to the function where you can see what arguments it allows.
By the way, you didn't instead mean findpeaks() in the Signal Processing Toolbox, did you?

その他の回答 (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