Animation in the complex plane with Octave

Animation in the complex plane with Octave

% complex vectors: Octave not the same as MATLAB
clear
den = 1;
for ti = 0:1:32
z = [ 0-2i -4-4i -6-0i -5-2i -5+3i -8+7i -11+9i ] * (cos(pi*den/16) + 1isin(pi*den/16)) ;

zend = z;

axis([ -16 16 -16 16 ])

axis off

hold on

plot([z], ‘‘)
pause(0.25)
clf
den = den +1;
end
axis([ -16 16 -16 16 ])
axis off
hold on
plot([zend], ‘*’)