MATLAB

posted by .

13.2 A quadratic Julia set has the form

z(n+1)=z(n)^2+c

The special case where c=-.123+.745i is called Douday's rabbit fractal. Follow example 13.1, and create an image using this value of c. For the Madelbrot image, we started with all z-values equal to 0. You'll need to start with z=x+yi. Let both x and y vary from -1.5 to 1.5.

I'm really confused by this question. Here's my attempt at a solution. I really hope someone can help me. My book did a very bad explaining the matter.

Code:
>> iterations=80;
grid_size=500;
[x,y]=meshgrid(linspace(-1.5,1.5,grid_size),linspace(-1.5,1.5,grid_size));
c=-.123+.745*i;
z=x+y*i;
map=x+y*i;
for k=1:iterations
z=z.^2+c;
a=find(abs(z)>sqrt(5));
map(a)=k;
end
figure(1)
image(map)
colormap(jet)
??? Error using ==> image
Error using ==> image
Image CData can not be complex

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Math Calculus

    The Image Theorem: The image theorem, a corollary of the intermediate value theorem, expresses the property that if f is continuous on the interval [a, b], then the image (the set of y-values) of f on [a,b] is all real numbers between …
  2. Programing

    apparently I was skipped by accident 13.2 A quadratic Julia set has the form z(n+1)=z(n)^2+c The special case where c=-.123+.745i is called Douday's rabbit fractal. Follow example 13.1, and create an image using this value of c. For …
  3. Physics

    An object is placed 11 cm in front of a concave mirror whose focal length is 23 cm. The object is 3.6 cm tall. Determine (a) the location of the image, taking a real image as a positive value and a virtual image as a negative value. …
  4. art

    picture is called, A Stage Set with a Statue and Palace by Unknown artist Courtesy of the National Gallery of Art, Washington Question: Because of the use of value change in this image, the artist A. was able to make the image have …
  5. Art

    A Stage Set with a Statue and Palace By Unknown artist Q: Because of the use of value change in this image, the artist A. Was able to make the image have no contrast. B. Was able to emphasize only one minute are of the drawing. C. …
  6. Art

    1. In the image, Green Wheat Fields, Auvers by Vincent van Gogh, which of the following elements was not used to create the principle of harmony?
  7. ART PLZ HELP

    1. Color was used in this image to create all of the following except?
  8. ART

    1. Color was used in this image to create all of the following except?
  9. Physics

    A concave spherical mirror has a radius of curvature of 18 cm. Locate the images for object distances as given below. In each case, state whether the image is real or virtual and upright or inverted, and find the magnification. (If …
  10. Analytical Geometry

    1) How do you create a fractal? 2) How are midpoints,lengths,equations for circles used to generate the fractal (pattern in pinecone). 3) What are some special features of this fractal (pattern in pinecone)?

More Similar Questions