Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

White Cartoon Panda in MATLAB


Code:

clc
clear all
close all
figure;
pause(4);
axis([-3 3 -3 3]);
t=0:0.01:2*pi;
x=-1.8+0.7*cos(t);
y=1.8+0.7*sin(t);
fill(x,y,'k');
axis square;
pause(1);
hold on;
x=1.8+0.7*cos(t);
y=1.8+0.7*sin(t);
fill(x,y,'k');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
pause(1);
x=2*cos(t);
y=2*sin(t);
fill(x,y,'w');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=-0.8+0.4*cos(t);
y=0.8+0.4*sin(t);
fill(x,y,'k');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=0.8+0.4*cos(t);
y=0.8+0.4*sin(t);
fill(x,y,'k');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=-0.67+0.2*cos(t);
y=0.9+0.2*sin(t);
fill(x,y,'w');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=0.67+0.2*cos(t);
y=0.9+0.2*sin(t);
fill(x,y,'w');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=-0.6488+0.07*cos(t);
y=0.7864+0.07*sin(t);
fill(x,y,'k');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=0.6488+0.07*cos(t);
y=0.7864+0.07*sin(t);
fill(x,y,'k');
axis([-3 3 -3 3]);
axis square;
pause(1);
hold on;
x=-0.1376+0.2*cos(t);
y=-0.2516+0.2*sin(t);
axis([-3 3 -3 3]);
fill(x,y,'k');
axis square;
pause(1);
hold on;
t=-0.3:0.01:0.3;
y=t.^2-0.9;
axis([-3 3 -3 3]);
plot(t,y,'k','linewidth',3)
axis square;


No comments

Popular Posts

Followers