from Using patch() and rotate() - Basics by Husam Aldahiyat
Powerpoint slides on the basic usage of the patch() and rotate() functions. Includes 13 Examples.

slide9
function slide9
	
	figure('units','normalized',...
		'position',[0.1, 0.1, 0.7, 0.7],...
		'menubar','none');
	
	axes('units','normalized',...
		'position',[0.5, 0.5, 0.4, 0.4])
	
	x1 = 3;
	x2 = 5;
	y1 = 2;
	y2 = 3;
	
	patch([x1,x1,x2,x2],[y1,y2,y2,y1],[1,0,0])
	
	axis([0 6 0 6])
	
end

Contact us at files@mathworks.com