Many thanks again. I completely agree to stick with the specified behavior. I have modified my script as follows:
clear all;
nproc=4;
function N = single_thread (arg)
Array2d=arg*[1,i;-i,1];
N=Array2d(:);
endfunction
b = pararrayfun (nproc, @single_thread, [1:5], "UniformOutput", false);
which works (you already knew that), size(b) returns 1 5, even though for instance b[1,1] has four elements. If b was an array, it would be 4 by 5, so it must be a cell. It must be clear to you by now I dont understand cells.
I will learn about cells and use what you have given me for my real problem.
I notice that on
http://wiki.octave.org/Parallel_package it doesnt say much about the three options (Chunks Per Proc, UniformOutput and Vectorized), although the examples give some info? Would you like me to expand the documentation (the answers would have to come from you), or is there any other way I could contribute? This seems such an important (and unique) feature of octave.