https://in.mathworks.com/help/signal/ref/signalmask.extractsigroi.html
extractsigroi - Extract regions of interest based on signal mask - MATLAB
This MATLAB function extracts regions of interest of the input signal vector x based on the source and properties in msk.
of interestbased onextractregionssignal