Path: Common/Control
% Find peaks of the inputs by looking at slopes. -------------------------------------------------------------------------- Form: [xP, yP, kP, ind] = FindPeaks( x, y ) -------------------------------------------------------------------------- ------ Inputs ------ x (1,:) X y (n,:) Y ------- Outputs ------- xP (n,:) values of x where y has peaks yP (n,:) Peak values of y kP (n,:) Maximum number of peaks for each y ind (n,:) Indexes to peaks for each row --------------------------------------------------------------------------