so i'm really new to matlab scripting. i am working on a mandelbrot zoom program at present and have a couple of issues and would love some feedback.
first, i have been using ginput to generate the new axis points for the zoom, however i would like to allow the user to drag over the area they would like to zoom but i can't seem to find right commands.
also i've been looking at vectorization code and am having a little trouble understanding certain things, for example in Lucio AndradeCetto's vectorization for mandelbrot sets he has the following code
[x,y]=meshgrid([0:stepsR1]*slR+lowerR,[0:stepsI1]*slI+lowerI);
Zvalues=ones(size(x));
initZ=zeros(size(x));
c=(x+i*y);
z=initZ;
h_z=1:(stepsR*stepsI);
for counter=1:MaxIter
z(h_z)=z(h_z).^2+c(h_z);
h_z= h_z(find(abs(z(h_z))<2));
Zvalues(h_z)=Zvalues(h_z)+1;
end
what purpose does the array Zvalues serve? why would you not directly iterate with z?
and for the plot
pcolor(x,y,log(double(Zvalues)));
the part that i don't understand is log(double(Zvalues)), any illumination would be greatly appreciated
