Dear all,
I am facing this apparently simple problem: I am trying to write a parfor loop that containts a function call with an unknown number of output arguments. The way I tried to implement it is as follows
Tank=initialize_tank();parfor ii=1:n [outputs{:}]=myfunction(a,b,c,d); Tank(:,ii)=outputs(:);end
But due to the way variable outputs is used, I get a complaint from parfor. Does anybody know the workaround to this?
Thanks
Best Answer