Smiling Angels emoji in MATLAB
MATLAB Program:
t=0:0.001:2*pi;
x=2*cos(t);
y=1+2*sin(t);
plot(x,y);
grid on;
fill(x,y,'y');
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.6:0.1:0.6;
y=t.^2;
plot(t,y,'k','linewidth',5)
hold on
t=0:0.001:2*pi;
x=2*cos(t);
y=2.9+0.2*sin(t);
plot(x,y,'b','linewidth',5);
axis square
No comments