Generate an 18-by-2 mask of binary sequences. Use the mask to create a signalMask object and label the categories as A and B. Extract an ROI table mask from the object.
Generate a 16-sample categorical sequence mask with two categories, A and B. Specify as missing those samples that do not belong to A or B. Use the mask to create a signalMask object. Extract an ROI table mask from the object.
Example: signalMask(table([2 4;6 7],["male" "female"]')) specifies a
signal mask with a three-sample male region and a two-sample
female region.
Example: signalMask(categorical(["" "male" "male" "male" "" "female" "female"
""]',["male" "female"])) specifies a signal mask with a three-sample
male region and a two-sample female
region.
Example: signalMask([0 1 1 1 0 0 0 0;0 0 0 0 0 1 1 0]','Categories',["male"
"female"]) specifies a signal mask with a three-sample
male region and a two-sample female
region.
If SampleRate is specified, the region limits in
tbl are expressed in seconds.
If RightExtension is greater than zero and SourceType is specified as 'categoricalSequence'
or 'binarySequences', the region limits in
tbl may go beyond the length of the sequence.
numroi — Number of regions vector of integers
Number of regions found for each of the categories in cats, returned as a
vector of integers.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.