[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parcellfun?
From: |
c. |
Subject: |
Re: parcellfun? |
Date: |
Mon, 16 Sep 2013 20:04:44 +0200 |
On 15 Sep 2013, at 00:19, javinhe <address@hidden> wrote:
> Hello, do not know much about parcellfun function, however my question if
> possible run 4 functions. M in different processor cores within a for, for
> example:
>
>
> for i = 1:10
>
> y = function (1);
> x = function (2);
> w = function (3);
> z = function (4);
>
> endfor
if the inputs and outputs are scalars that would translate as:
out = pararrayfun (@function, 1:4, "UniformOutput", true)
if the inputs are scalars but the outputs are not that would translate as:
out = pararrayfun (@function, 1:4, "UniformOutput", false)
> as inputs and outputs of each function are independent, this because the
> implemented functions require too many calculations and unused parallel
> processing is very slow. I could give an idea?
HTH,
c.