HW08s10soln - while(r*r+s*s<=4 && n<limit)...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
function A = julia(rmin,smin,rmax,smax,x,y) size = 512; limit = 255; A = zeros(size); rinitial = linspace(rmin,rmax,size); sinitial = linspace(smin,smax,size); % i points to a row (y or s) j to a column (x or r) for i=1:size for j=1:size n=0; r=rinitial(j); s=sinitial(i);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: while(r*r+s*s<=4 && n<limit) n=n+1; rn=r*r-s*s+x; sn=2*r*s+y; r=rn; s=sn; end A(i,j) = n; end end >> A = julia( -.3 , -.3 , .3 , .3 , -.297491 , -.641051 ); >> imagesc( A ) 50 100 150 200 250 300 350 400 450 500 50 100 150 200 250 300 350 400 450 500...
View Full Document

This note was uploaded on 05/04/2010 for the course ECO 304K taught by Professor Hickenbottom during the Spring '10 term at University of Texas at Austin.

Page1 / 2

HW08s10soln - while(r*r+s*s<=4 && n<limit)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online