No BSD License
function n = findpeaks(x) % Find peaks. % n = findpeaks(x) n = find(diff(diff(x) > 0) < 0); u = find(x(n+1) > x(n)); n(u) = n(u)+1;
Contact us at files@mathworks.com