MATLAB: ??? Error: Unexpected MATLAB operator.

matlab integration

Hello everyone,
I'm cofused by this problem for several days. here is the error message:
??? Error: Unexpected MATLAB operator.
Error in ==> sym.eval at 15
s = evalin('caller',vectorize(map2mat(char(x))));
Error in ==> test_nmt_m2 at 80
J1 = eval(feval(symengine,'numeric::int',f4,'r=lower3..upper3')) + …
Here is the code which producing the error:
J1 = eval(feval(symengine,'numeric::int',f4,'r=lower3..upper3')) + …
eval(feval(symengine,'numeric::int',f2,'r=lower1..upper1')) + …
eval(feval(symengine,'numeric::int',f3,'r=lower5..upper5')) + …
eval(feval(symengine,'numeric::int',f4,'r=lower2..upper2'));
Thanks in advance if anybody can solve this problem.

Best Answer

Never eval() a symbolic expression. The language they use is not MATLAB and is not mupad.
I suspect that numeric integration is failing for you, returning back an unevaluated numeric::int form.