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 Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by