%Candace Barney
%ECE 5930

function polar(ex, ey, phix, phiy)

deg = 0;
i = 1;
n=17;
M=moviein(n);


while (deg < 360)

	y(i) = ey*cos(deg*pi/180 + phix);
	x(i) = ex*cos(deg*pi/180 + phiy);
	deg = deg + 20;
	plot(x(i), y(i));
	axis([-5 5 -5 5])
	M(:,i) = getframe;
	i = i+1;
	
end

movie(M)