📄 mandel.m
字号:
% MANDEL.M Produces a plot af the famous Mandelbrot set.% see: http://eulero.ing.unibo.it/~strumia/Mand.html% The generator is z = z^m + c. Try changing the parameters:%m = 1, 2, 3 ... 50 etc.m = 2;clfcol=20;N=400; cx=-.6; cy=0; l=1.5; x=linspace(cx-l,cx+l,N); y=linspace(cy-l,cy+l,N);[X,Y]=meshgrid(x,y); Z=zeros(N); C=X+i*Y; for k=1:col; Z=Z.^m+C; end W=exp(-abs(Z));colormap copper(256); imagesc(W); axis('square','equal','off');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -