Okay, I seem to have found a solution - with an initilization for "in", the following does work:
parfor jj = 1:4
in = NaN(1,3);
for kk = 1:3
in(1,kk) = kk;
end
A(jj,:) = in;
end
display(A)
I'd appreciate a comment on this as I do not yet have a full understanding of what parfor does expect and what not.