[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie - matrix fill from vectors

From: Adam Majewski
Subject: Re: newbie - matrix fill from vectors
Date: Sun, 06 Nov 2011 13:48:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110921 Thunderbird/3.1.15

On 04.11.2011 19:10, Jordi GutiƩrrez Hermoso wrote:
On 4 November 2011 13:57, Adam Majewski<address@hidden>  wrote:

I was trying to do make vectorised ( fast) code like in this image :

I have made :
Can I vectorise this code ?

Since you have to do an iterated function system for a fractal, you
basically have to run your IFS on each value of the domain. For this
purpose, you would probably do something like

     fractal = arrayfun(@ifs, xx, yy)

where ifs(x,y) returns the number of iterations at [x,y].

You should be able to do a variation of this if instead of counting
iterations of the IFS you want to see where it's sending values. But
arrayfun should be the function to use. It's not really "vectorised";
it simply delegates the loop to C++, but it should be enough for this

- Jordi G. H.
THx for answers
I have found also :



reply via email to

[Prev in Thread] Current Thread [Next in Thread]