% PlotUnitCircle Script file to plot a circle of radius one % % A circle of radius one is plotted in the current figure window. The % script relies on the fact that exp(j*2*pi*t) defines a unit circle in the % complex plane. Furthermore, it exploits that the plot command with a % single complex-valued argument plots the real versus the imaginary part. % % Syntax: % PlotUnitCircle NumPoints = 500; tt = ( 0 : NumPoints ) / NumPoints; % tt goes from 0 to 1 UnitCircle = exp(j*2*pi*tt); plot(UnitCircle) axis('square')