rectangle

Creates a rectangular shape on a figure.

Syntax

rectangle(property, value)

rectangle(fHandle, property, value)

Inputs

fHandle
Figure handle.
Type: integer
Dimension: scalar
property
Property name of the rectangle.
Type: string
Dimension: scalar
v
Value of the property to be modified.
Type: double | char | logical | struct | cell | integer
Dimension: scalar | vector | matrix

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;