This is a utility function to merge segments given by on- and offset ids which occur within a given gap. For example, the on-off ids
[4 5; 8 10; 14 20]
will be merged to
[4 10; 14 20]
with a gap size of 3 samples.
This function is part of a set of functions to convert between logical and number indexing in arrays:
David J. Mack (2022). bridgeIdGaps(OnOffIds, MaxGapSize, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/58985-bridgeidgaps-onoffids-maxgapsize-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!