MATLAB: How to calculate peak to peak amplitude from a waveform

amplitude waveformpeak2peak

I have a waveform in time and velocity and I want calculate the amplitude using peak to peak amplitude concept. How to do it?

Best Answer

Do you just want the min to max over the entire signal
amplitude = max(waveform(:)) - min(waveform(:));
or do you want the amplitude in a moving window? If in a moving window, what should the window width be?