nd = 50;

<span class="comment">% define the second rectangular sensor region by specifying the location of
% opposing corners</span>
rect2_x_start = 71;
rect2_y_start = 81;
rect2_x_end = 80;
rect2_y_end = 90;

<span class="comment">% assign the list of opposing corners to the sensor mask</span>
sensor.mask = [rect1_x_start, rect1_y_start, rect1_x_end, rect1_y_end;...
               rect2_x_start, rect2_y_start, rect2_x_end, rect2_y_end].';
</pre>

<p>The computation is again started by calling <code><a hre