Error using findpeaks => Too many input arguments.

hi, I am using findpeaks function as following: [pks_temp,locs_temp]=findpeaks(data);
This program used to run without any problem but now I get following error while I didn't perform any change in the program:
Error using findpeaks Too many input arguments.
I updated the license recently (got it from you)... looks like this problem related to it...
Please help. Best regards, Alex

Antworten (1)

Wayne King
Wayne King am 6 Feb. 2012

8 Stimmen

Hi Alex, please use the command
>>which findpeaks
to ensure that you are using the MATHWORKS' version of findpeaks.m and not some other version on your MATLAB path.
I suspect maybe you have another version ahead of the MATLAB version on your path.
You should get back something like:
matlab\toolbox\signal\signal\findpeaks.m

3 Kommentare

AIJAZ BHAT
AIJAZ BHAT am 3 Aug. 2020
your help worked quite smoothly.
It is great help form you sir.
Thank you, Wayne King.
how can we resolve?
DAVID KUSTER
DAVID KUSTER am 17 Feb. 2022
You've just saved my life xD
Code broke cause I added a plugin folder to addpath.
Just ran a rmpath 'D:\folder-to-plugin\' and everything back to working!
Tnx very much!

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 6 Feb. 2012

Kommentiert:

am 17 Feb. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by