% EXTRA DEMO:   CIRCLE DEMO (Slow Version)
%
% Program:      circle_demo_fast.m
% Written by:   
% For:          EE 311
%               Extra Demo For Computer Lab 1
% Date:         5-31-2001
% Purpose:      Computes and plots a unit circle
%               using complex exponentials.
%               Slow version which uses explicit 
%               "for" loop.
clear all, hold off, clf reset, close all
j=sqrt(-1);
n=360;
for i=1:n
    theta(i)=2*pi*i/n;      % Explicit 'for' loop
end
circle=exp(j*theta);
figure
axis('square')
hold on
plot(circle)
title('Circle Demo Slow')
xlabel('real part'), ylabel('imag part')
figure(gcf)
