MinPeakProminence option in findpeaks function absent in Linux versions

12 views (last 30 days)
When trying to call the findpeaks function (signal processing toolbox) on a LINUX version of Matlab, I get the following error (I never get this on Windows):
Error using findpeaks>parse_inputs (line 131)
'MinPeakProminence' is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in findpeaks (line 71)
[X,Ph,Pd,Th,Np,Str,infIdx] = parse_inputs(Xin,varargin{:});
Error in plot_ac_loglin (line 11)
[pks,locs] = findpeaks(ac(:,i),'Npeaks',MAX_PEAKS,'MinPeakProminence',0.1,'MinPeakHeight',0);
How should I fix this? I do not understand why the linux version of the toolbox would be different from the windows version. I'm using R2014a.

Answers (1)

Greg Dionne
Greg Dionne on 17 Nov 2015
The Signal Processing Toolbox Release Notes indicate that this function was upgraded in R2014b. You'll need to upgrade to use the new functionality.

Products

Community Treasure Hunt

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

Start Hunting!