Flower using ellipse | MATLAB

Code:
clf
figure;
t=pi+pi/2:-0.01:pi/2;
x=1+cos(t);
y=-10+10*sin(t);
plot(x,y,'color',[0.2 0 0],'linewidth',3);
axis equal;
pause(2);
hold on;
t=0:0.01:2*pi;
x=10*cos(t);
y=3*sin(t);
for i=1:5
hold on;
q=[x;y];
e=pi/5*i;
z=[cos(e) -sin(e);sin(e) cos(e)];
k=z*q;
r=k(1,:);
d=k(2,:);
fill(r,d,'y');
plot(r,d,'y','linewidth',5);
axis square;
pause(1);
end
hold on;
x=3*cos(t);
y=3*sin(t);
patch(x,y,[0.2 0 0]);

No comments