Clear Filters
Clear Filters

Internal error with symbolic engine. Quit and restart MATLAB.

11 views (last 30 days)
Hi guys,
I am using symbolic math toolbox in Matlab 2018b in Win10 64-bit.
The problem is
Error mupadmex
Internal error with symbolic engine. Quit and restart MATLAB.
Error in sym/matlabFunction>mup2mat (line 404)
res = mupadmex('symobj::generateMATLAB',r.s,ano,spa,0);
Error in sym/matlabFunction>writeOutput (line 540)
body = mup2mat(y,false,sparseMat);
Error in sym/matlabFunction>writeMATLAB (line 453)
writeOutput(fid,outputs,f,1,sparseMat);
Error in sym/matlabFunction (line 183)
g = writeMATLAB(funs,file,varnames,outputs,body, opts.Optimize, opts.Sparse, opts.Comments);
Error in sym/odeFunction (line 135)
f = matlabFunction(expr, 'Vars', varsAndParams, matlabFunOptions{:});
Error in the_method_7 (line 180)
combined_mass_matrix_handle1 = odeFunction( Mrr , p_inde( 1 : 16 ) , 'Sparse' , true ,
'Optimize', false , 'File' , 'mass_matrix_file') ;
Are there any solutions to this? Many thanks!
  24 Comments
Tony Cheng
Tony Cheng on 2 Jun 2019
Hi Walter, today I have an idea in this trouble.
Because the symbolic expression of this problem is extraordinarily lengthy and complicated, and we have the initial values of the symbolic variables, Could we transfer them from symbolic expressions into numercial expressions before we use odeFunction, as shown in the attachment pdf file?
If yes, the computational burden can be alleviated a lot when sending relevant matrixes into odeFunction .
Many thanks for your great help!
Tony Cheng
Tony Cheng on 2 Jun 2019
For R2019a, I will try to find some access to it from my workmates. I will try this new version definitely.

Sign in to comment.

Answers (0)

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!