Don't know where my code is wrong and how to fix it

조회 수: 1 (최근 30일)
Brendan Jozwiak
Brendan Jozwiak 2022년 7월 17일
댓글: Brendan Jozwiak 2022년 7월 17일

채택된 답변

Torsten
Torsten 2022년 7월 17일
편집: Torsten 2022년 7월 17일
Pi = sym(pi)
Pi = 
π
double(Pi)
ans = 3.1416
Pi = sym('pi')
Pi = 
π
double(Pi)
Error using symengine
Unable to convert expression containing symbolic variables into double array. Apply 'subs' function first to substitute values for variables.

Error in sym/double (line 868)
Xstr = mupadmex('symobj::double', S.s, 0);
You understand the difference ?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by