Though you cannot customize the line width directly when calling the "plotrigsoi", you can output the axes handle returned by "plotsigroi" and modify the properties of the children. Below is an example that can help you understand how it works:
1. Consider a mask of binary sequences for two categories, "ran" and "dom". Use the sequences to generate a "signalMask" object. Discard regions fewer than 3 samples:
>> rng default
>> sq = randi(2,200,2)-1;
>> m = signalMask(sq,"MinLength",3,"Categories",["ran" "dom"]);
2. Generate a sequence of 200 random numbers. Call "plotsigroi" and store the returned axes handle into "h":
>> x = rand(200,1);
>> h = plotsigroi(m,x);
This should plot the result like this:
3. Get the children of "h", which is a "3x1 graphics array" containing three instances of "Line":
>> ls=h.Children
ls =
3×1 graphics array:
Line
Line
Line
4. Modify the line width as you desire:
>> ls(1).LineWidth = 0.2;
>> ls(2).LineWidth = 2;
>> ls(3).LineWidth = 0.5;
And now the plot looks like this: