In the code below I get an error
Error: The variable Matrix in a parfor cannot be classified.See Parallel for Loops in MATLAB, "Overview".
parfor i=1:n try query = 'SELECT * FROM TABLE WHERE Criterion = '' criteria(i) '''; curs = exec(conn, query); curs = fetch(curs); close(curs); results = curs.Data; A = f(results); B = g(results); C = h(results); D = k(results); Matrix(i,6:9) = horzcat(A,B,C,B); catch Matrix(i,6:9) = {0,0,0,0}; endend
Any ideas what I am missing?
Best Answer