Wednesday
June 19, 2013

Homework Help: MATLAB

Posted by Lee on Saturday, July 16, 2011 at 7:24pm.

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

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

Programing - apparently I was skipped by accident 13.2 A quadratic Julia set has...
English Expression - 1. In our country, a memorable day is set according to a ...
Physical Science - Julia and Wayne heat their house during the winter with an ...
Math - 3^2*3^3=3^5 7*0.1=7/10 5^2*5^3=5^5 3*0.1=3/10 13^2*13^3=13^5 4*0.1=4/10 ...
Algebra - I'm trying this again, I'd like the quadratic form, so i can ...
Pre-Calc - Hello! I'm stuck on how to do this problem and would appreciate ...
Pre-Calculus - Hello! I'm stuck on how to do this problem and would ...
Math - Hi I have optimization Qs with MATLAB can you help me and did you know ...
Law(case analysis) - 1. Identify all potential lawsuits (eg. parties and ...
math story problem - a cat runs 3 times as fast as a rabbit. If a rabbit ran 2m ...

For Further Reading

Search
Members
Community