How to fix this symengine error?

4 views (last 30 days)
Javier Castillo
Javier Castillo on 20 Feb 2021
Commented: Paul on 20 Feb 2021
I was following procedures for our experiment and symengine error occured.
G = (12*s^3 + 24*s^2 + 28*s + 9)/(2*(- 24*s^4 - 12*s^3 + 70*s^2 + 156*s + 99))
>> v_t = heaviside(t);
>> V_s = laplace(v_t);
>> Vc_s = G*V_s;
>> vc_t = ilaplace(Vc_s);
>> t = 0:.1:10;
>> vc_t = matlabFunction(vc_t);
Error using symengine
Code generation failed due to unexpected object of type
'RootOf'.
Error in sym/matlabFunction>mup2mat (line 404)
res = mupadmex('symobj::generateMATLAB',r.s,ano,spa,0);
Error in sym/matlabFunction>mup2matcell (line 374)
r = mup2mat(c{1},true,sparseMat);
Error in sym/matlabFunction (line 188)
body = mup2matcell(funs, opts.Sparse);
  1 Comment
Paul
Paul on 20 Feb 2021
Is it required to find the symbolic solution and then evaulate it numerically? Or is it allowed to go straight to a numerical solution of vc_t?

Sign in to comment.

Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!