i'm also receiving the following error from the following code:
f = matlabFunction(M_c,'file','cluster_mass_eval','vars','[theta beta p q]')
??? Error using ==> sym.matlabFunction>checkVars at 158 Variable names must be valid MATLAB variable names.
Error in ==> sym.matlabFunction at 104 vars = checkVars(funvars,opts);
The symbolic expressions in M_c are a function of [theta, beta, p, q]....as evidenced by the output of symvar(M_c)....so what does it mean that [theta, beta, p, q] aren't 'valid MATLAB variable names'.
thanks again, kyle