reepicheep Posted June 3, 2013 Posted June 3, 2013 (edited) So I'm trying to use GNU Octave (ie. pretty much MATLAB) to create Julia and Mandlebrot sets. I've managed to actually program the Julia set properly and the Mandelbrot set shouldn't be problematic by way of actually letting the points iterate and then keeping the initial points that don't tend to infinity. But that aside, whenever I try to use around 10000 points, ie. about enough to actually get anything that looks like a filled-in Julia set, Octave tells me that memory is exhausted. I've got 2GB of RAM, so I'd imagine that's the problem. Is there a way of fixing this without getting more RAM?EDIT: It might be relevant to mention that as initial points I used a unifrand(-2,2,n), so uniformly distributed random numbers in an nxn matrix.EDIT2: Never mind, I fixed it with a little creativity. Rather than throw a 1000x1000 matrix in there I can just abuse the fact that unless you explicitly tell it to Octave won't get rid of plotted points, so I can simply run the same program several times to get a reasonably accurate picture. Edited June 3, 2013 by reepicheep Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.