Heyhey,
at the moment my source code looks like this
ParForQueue = parallel.pool.DataQueue;afterEach(ParForQueue,@AddStruct);parfor m = 1:Anzahl ... send(ParForQueue, Satz)end... function [] = AddStruct(Satz) global TabellenRueckgabe ...end
My question is: how is it possible to avoid the global variable. I want to use the function like this instead of using global
function [TabellenRueckgabe] = AddStruct(Satz, TabellenRueckgabe) TabellenRueckgabe(x) = Satz; ...end
Best Answer