Problem with 'MinPeakVariance' in findpeak().
Afficher commentaires plus anciens
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)]);
Réponses (0)
Catégories
En savoir plus sur Spectral Measurements dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!