T=0.1;
w=[0:0.2:pi/T];
r=(cos(2*w*T)+cos(w*T)+0.5);
im=(sin(2*w*T)+sin(w*T));
plot(r,im)