MATLAB: Can you limit findpeaks to only look for odd peaks (i.e. search 1st, 3d, 5th, etc. peaks) findpeaksSignal Processing Toolbox Thanks for the help 🙂 Best Answer No. You just find them all and subsample[peakValues, indexesOfPeaks] = findpeaks(signals);peakValues = peakValues(1:2:end);indexesOfPeaks = indexesOfPeaks(1:2:end); Related SolutionsMATLAB: Correlation between two row matrices Like that, each value of "a" is correlated to each value of "b", but applying the formula of the correlation, the correlation of two single numbers is NaN. To compute the correlation correctly, traspose the input vectorsresult = corr(a', b'); MATLAB: Does a cell vector contains only NaN cisnan = @(C)all(cellfun(@(x)all(isnan(x(:))),C));cisnan(your_cell) Related QuestionSame matrix but not equal problemHistogram PeakFind peaks.Finding values of specific range from table row or column
Best Answer