rectangle
Creates a rectangular shape on a figure.
Syntax
rectangle(property, value)
rectangle(fHandle, property, value)
Inputs
- fHandle
 - Figure handle.
 - property
 - Property name of the rectangle.
 - v
 - Value of the property to be modified.
 
Example
Simple textbox example:
figure(1);
box = [10 10 328 299; 50 50 180 160;100 100 30 20];
for i = [1:size(box,1)]
	  handle(i) = rectangle(1, 'pos', box(i,:));
end;
      Figure 1. Simple text example