DrawRect - and(a,b W and color c where c is one of'r'g'y...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function DrawRect(a,b,L,W,c) % Adds a rectangle to the current window. % Assumes hold is on. % The rectangle has vertices (a,b), (a+L,b), (a+L,b+W),
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % and (a,b+W) and color c where c is one of 'r', 'g', 'y', etc. % x = [a a+L a+L a a]; y = [b b b+W b+W b]; fill(x,y,c);...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online