- /
-
We wish you a merry christmas, we wish you a merry chirstmas
on 24 Nov 2023
- 16
- 27
- 0
- 3
- 228
drawframe(1);
Write your drawframe function below
function drawframe(f)
col=20;
r=10;
m=400;
cx=0.025;
cy=0;
l=0.03;
x=linspace(cx-l,cx+l,m);
y=linspace(cy-l,cy+l,m);
[X,Y]=meshgrid(x,y);
Z=zeros(m)+eps;
C=X+i*Y;
for k=1:f;
Z=Z.^Z+C;
W=exp(-abs(Z));
end
colormap jet(256);
pcolor(flipud(W'));
shading flat;
axis('square','equal','off');
end