Attachment 'mandelplot.m'

Download

   1 %
   2 %	Filename: mandelplot.m
   3 %
   4 function mandelplot(run,anz,filename)
   5 my_res = 512;
   6 my_x = 0.87485;
   7 my_y = 0.75145;
   8 my_log_r0 = 1.5;
   9 my_log_r1 = -12;
  10 my_log_r = my_log_r0 + my_log_r1 - my_log_r0*(run-1)/anz;
  11 my_r = exp(my_log_r);
  12 x1 = my_x - my_r;
  13 x2 = my_x + my_r;
  14 y1 = my_y - my_r;
  15 y2 = my_y + my_r;
  16 x=[x1:(x2-x1)/my_res:x2];
  17 y=[y1:(y2-y1)/my_res:y2];
  18 m=zeros(my_res);
  19 m=mandelbrot(my_res,x1,x2,y1,y2);
  20 
  21 %clf;surf(x,y,m)
  22 %axis tight;
  23 %shading interp; map=colormap;
  24 %map(1,3)=0;
  25 %colormap(map);
  26 %view(2)
  27 
  28 imwrite(m,filename);
  29 end

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2013-03-18 13:47:34, 0.5 KB) [[attachment:mandelbrot.m]]
  • [get | view] (2013-03-18 13:48:07, 0.2 KB) [[attachment:mandelbrot.sge]]
  • [get | view] (2019-08-13 03:18:40, 0.5 KB) [[attachment:mandelplot.m]]
  • [get | view] (2019-08-13 03:18:40, 0.7 KB) [[attachment:primes.c]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.