Problem with 'MinPeakVariance' in findpeak().

1 Ansicht (letzte 30 Tage)
poonam
poonam am 11 Feb. 2016
Bearbeitet: poonam am 18 Feb. 2016
Hello @image Analyst, I am trying to run this demo program
While using findpeak function to get minimum and maximum value "MinPeakProminence" is not supporting in matlab13a. which alternate function can i use instead it?
I tried to get maximum and minimum value by using MinPeakHeight instead 'MinPeakProminence' but i am only getting maximum value not the minimum. what is the problem i am not able to find. what is wrong i am doing? what i did is here.
% Find the range of the peaks peakRange = max(distances) - min(distances); minPeakHeight = 0.5 * peakRange; % Find the peaks
%[peakValues, peakIndexes] = findpeaks(distances, 'MinPeakProminence', minPeakHeight); [peakValues, peakIndexes] = findpeaks( distances,'MinPeakHeight',minPeakHeight);
% Find the valueys. %[valleyValues, valleyIndexes] = findpeaks(-distances, 'MinPeakProminence', minPeakHeight);
[valleyValues, valleyIndexes] = findpeaks( -distances,'-MinPeakHeight', minPeakHeight); numVertices(k) = max([length(peakValues), length(valleyValues)]);

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by