DrawDisk - % theta = linspace(0,2*pi); cosVals =...

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

View Full Document Right Arrow Icon
function DrawDisk(xc,yc,r,c) % Adds a circular disk to the current window. % Assumes hold is on. % The disk has radius r, center(xc,yc) and % color c where c is one of 'r', 'g', 'y', etc.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % theta = linspace(0,2*pi); cosVals = cos(theta); sinVals = sin(theta); fill(xc+r*cosVals,yc+r*sinVals,c);...
View Full Document

Ask a homework question - tutors are online