Wednesday
April 16, 2014

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...
math - These numbers form an addition and subtraction fact family. 6, 7, 13 ...
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 ...
math - Please help me to find the first and third quartiles, Q1 and Q3, of the ...
Advanced Math - Can someone check these for me? Please? Use half-angle identity ...
Pre Cal. - 1. Use half-angle identity to find the exact value of cos165. MY ...
Basic math skills with geometry (6th ed.) - Place the following set of numbers ...
Math- - Find the prime factorization of the number, and write it in exponent ...
Need Help!! Algebra - I am having trouble in this class and need help with this ...
Computer Science - MATLAB - Thanks MathMate. Print plotting sounds awful O_O. ...

Search
Members