Search This Blog

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

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();