How to fix this symengine error?

5 ビュー (過去 30 日間)
Javier Castillo
Javier Castillo 2021 年 2 月 20 日
コメント済み: Paul 2021 年 2 月 20 日
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 件のコメント
Paul
Paul 2021 年 2 月 20 日
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?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by