mask = sigroi2binmask(roilims)
converts roilims, a matrix of signal region-of-interest (ROI) limits,
to a binary sequence, mask, with true values
indicating samples that belong to regions of interest.
Consider a two-column matrix of beginning and end samples of four possible regions of interest of a signal. Convert the ROI limits to a logical sequence and display the sequence.
Region-of-interest limits, specified as a two-column matrix of positive integers. The
ith row of roilims contains nondecreasing
indices corresponding to the beginning and end samples of the ith
region of interest of a signal.
Example: [5 8; 12 20; 18 25] specifies a two-column region-of-interest
matrix with three regions.
Output sequence length, specified as an integer scalar. Regions with indices larger
than len are ignored or truncated. If len is
greater than max(roilims(:,2)), then sigroi2binmask pads
mask with false values.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.