Problem 81. Mandelbrot Numbers
Solution Stats
Problem Comments
-
7 Comments
For c==4 and other numbers where abs(c)>2, I think the function should be defined to return 0 rather than 1.
comment
I am really stuck on this one. I know it is likley me not the question but I cannot figure out why in the final validation, -2i should give N=1, I get it to be N=2? any help is appriciated, this is the only situlation where code fails.
For people like me that hoped this challenge would end with a pretty picture:
`[X,Y]=meshgrid(-2:0.0025:2,-2:0.0025:2);C=X+i.*Y;N=mandelbrot(C,50);imagesc(N)`
@Ratchet_Hamster
for complex no, u need to take the absolute value to check if it is greater than 2
Broken ink to Cleve Moler's PDF
Thanks for noticing that, @Shlomo Geva. The link has been fixed.
Problem Recent Solvers1076
Suggested Problems
-
Set the array elements whose value is 13 to 0
1170 Solvers
-
299 Solvers
-
586 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
330 Solvers
-
Convert from Fahrenheit to Celsius
14387 Solvers
More from this Author95
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!