%% Extend Overlapping Regions of Interest
% Consider a two-column matrix of integers that can represent overlapping regions of interest of a signal. Extend the regions of interest by two samples to the left and three samples to the right. extendsigroi does not extend regions to the left beyond the first sample.

rois = [1 10; 17 26; 24 32; 38 40];

xrois = extendsigroi(rois,2,3)

% Copyright 2020 The MathWorks, Inc.