Peakydo peak finder

Version 1.2.0.0 (1.55 KB) by Rob
This function simply finds the 1 peak between sign changes on a signal.
194 Downloads
Updated 5 Jul 2012

View License

function [ pks mn criss ] = peakydo(arr,xlimee,ylimee )

% This function simply finds the peak of a signal between a sign change.
% This is the peak of a two sided signal. there are the inputs.
% to use simply
% >>[pks mn criss]=peakydo(nameofyourarray, xlimit, ylimit)
% [ pks mn criss ]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% the pks returns the peak magnitudes
% the mn is the mean of the pks
% the criss is the location of all the sign changes not just the
% peaks found in your selection although this will be added
% (arr,xlimee,ylimee )%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% the arr is your acceleration data
% xlimee is the minimum distance allowed between points in your data
% ylimee is the minimum points amplitude considered

%the xlimit is the minimum distance between points before a sign change.
%ylimit is the minimum point in your data to be considered in mean

% Ingeniørhøjskolen i København
% this is written by Rob Messer (robmesser@gmail.com) if you have any
% questions feel free to contact me I will be happy to help!

Cite As

Rob (2026). Peakydo peak finder (https://www.mathworks.com/matlabcentral/fileexchange/37205-peakydo-peak-finder), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.2.0.0

Fixed the missed negatives and last and first max

1.1.0.0

This is V1.1 it now includes limit between sign changes and a means to filter out peaks. For the original file where just all peaks are analyzed please download

1.0.0.0