t=0:0.001:1;
y1=cos(2*pi*22.*t);
plot(t,y1);
hold on;
y2=cos(2*pi*20.*t);
plot(t,y2);
y3=cos(2*pi*22.*t)+cos(2*pi*20.*t);
figure;
plot(t,y3);
t=0:0.001:1;
A1=1;A2=2;W=2*pi;Y1=0;Y2=pi/3;
x=A1*cos(W.*t+Y1);
y=A2*cos(W.*t+Y2);
plot(x,y);
t=0:0.001:1;
y1=cos(2*pi*22.*t);
plot(t,y1);
hold on;
y2=cos(2*pi*20.*t);
plot(t,y2);
y3=cos(2*pi*22.*t)+cos(2*pi*20.*t);
figure;
plot(t,y3);
t=0:0.001:1;
A1=1;A2=2;W=2*pi;Y1=0;Y2=pi/3;
x=A1*cos(W.*t+Y1);
y=A2*cos(W.*t+Y2);
plot(x,y);