MinPeakProminence option in findpeaks function absent in Linux versions

2 次查看(过去 30 天)
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.

回答(1 个)

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

产品

Community Treasure Hunt

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

Start Hunting!

Translated by