Hi all –
I know this type of question has been asked many times, but I simply can't figure out how to translate my code to work. Very simply: – I have a large cell called "masterData", which merely holds my final data – In a parfor loop, I am performing an analysis that yields three large arrays rt, xo, and no. – I'd like to store the three large arrays in the masterData cell together with the sample name:
masterData=cell(20,1);parfor i=1:20%analysis here. Yields rt, xo, no
masterData{i,1:4}={name rt xo no};end
I get the error "Error: The variable masterData in a parfor cannot be classified." I'm sure this is an easy fix relating to how masterData is populated. Any help is appreciated. Thanks,
Tristan
Best Answer