Hello,

I have a program for Julia set (Fractals), shown below:

Code:

function julian(itr,refine)
xo=0;
yo=0;
l=2;
x=linspace(xo-l,xo+l,refine);
y=linspace(yo-l,yo+l,refine);
[xp,yp]=meshgrid(x,y);
C= -.8+.156*i;
zp=xp+i*yp;
for k=1:itr;
zp=zp.^2+C;
fractal=exp(-abs(zp));
end
colormap jet(256)
pcolor(fractal);
shading interp;
axis('square','equal');
end

RUN THE CODE : julian (20,2000)

My problem is that I cannot zoom! If I zoom it doesn't show details. Is there a function or a way to make Matlab know the two points I selected and solve for them giving me a new figure for the selected region?

Thanks,