Can somebody halp me with the error, an UndefinedFunction error was thrown on the workers for 'variable'

The program I run has a certain chance of giving me the following error even though I do a cvx_setup before each run.

I don’t think CVX is compatible with parfor or the parallel computing toolbox.

I don’t think the situation has changed subsequent to this thread from 2012

Thank you very much for your kind reply! The problem did not appear since I write the cvx_setup at the start of the Matlab code.

Are you using parfor? DId you get CVX to work successfully with parfor?