Main Content

removesigroi

Remove signal regions of interest

Description

example

roilimsout= removesigroi(roilims,s)removes signal regions of interest specified inroilimsthat have a length ofssamples or less.

Examples

collapse all

Create a two-column matrix of integers that can represent regions of interest of a signal. Remove any regions that are six samples in length or shorter.

rois = [1 6; 17 26; 24 32; 36 40]; xrois = removesigroi(rois,6)
xrois =2×217 26 24 32

Input Arguments

collapse all

Region-of-interest limits, specified as a two-column matrix of positive integers. Theith row ofroilimscontains nondecreasing indices corresponding to the beginning and end samples of theith region of interest of a signal.

Example:[5 8; 12 20; 18 25]specifies a two-column region-of-interest matrix with three regions.

Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64

Maximum length of regions of interest to remove, specified as a nonnegative integer.

Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64

Output Arguments

collapse all

Modified region-of-interest limits, returned as a two-column matrix of positive integers. Output limits are returned in sorted order using thesortrowsfunction.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2020b