Search This Blog

Smiling Face in MATLAB

Program :

t=0:0.001:2*pi;
x=2*cos(t);
y=1+2*sin(t);
fill(x,y,'g');
axis square
hold on
x2=-1+0.1*cos(t);
y2=2+0.1*sin(t);
fill(x2,y2,'k');
hold on;
x3=1+0.1*cos(t);
y3=2+0.1*sin(t);
fill(x3,y3,'k')
t=-0.4:0.1:0.4;
y=t.^2;

plot(t,y,'r','linewidth',5)




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); })();