MATLAB: How to find duration of peak; starting and ending points

mripeaksignal

I've used findpeaks to isolate the largest peak in my signal. I wanted some help in finding the duration of the peak aka the starting and ending points of this peak, so that I could calculate area under curve? Right now Im having to visually inspect and pick arbitrary points to define this start and end points.

Best Answer

Experiment with ths ischange function, and if you have the Signal Processing Toolbox, the findchangepts function.