mandel.m
来自「hi i have a huge collection are you int」· M 代码 · 共 28 行
M
28 行
% 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 + =
减小字号Ctrl + -
显示快捷键?