Peak_to_Peak 计算
function y = peak2peak(signal)% Return the peak-to-peak amplitude of the supplied signal. This is the% same as max(signal) minus min(signal).%% Usage: y = PEAK2PEAK(signal);%% SIGNAL is your one-dimensional input array%% Author: sparafucil.