MATLAB Program for plotting OLYMPIC LOGO
Program:
t=0:0.001:2*pi;
x=cos(t);
y=sin(t);
plot(x,y,'y','Linewidth',8);
axis square
hold on;
x2=2.5+cos(t);
y2=sin(t);
plot(x2,y2,'g','Linewidth',8);
hold on;
x=-1.2+cos(t);
y=1.2+sin(t);
plot(x,y,'b','Linewidth',8);
axis square
hold on;
x=1.2+cos(t);
y=1.2+sin(t);
plot(x,y,'k','Linewidth',8);
axis equal
hold on;
x=1.2+x2;
y=1.2+y2;
plot(x,y,'r','Linewidth',8);
axis equal
Output:
No comments