フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

syms first then add numbers

2 ビュー (過去 30 日間)
Philosophaie
Philosophaie 2013 年 9 月 17 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
This may sound silly but I would like to write an equation in "syms" variables to actually see the variables in the equation then after it is printed out add numbers to the equation to get the final results. Is this possible?

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 9 月 17 日
syms x y z
eqn = x^3 + sin(y) - exp(z);
pretty(eqn)
val = subs(eqn, {x, y, z}, {7, pi/3, 1/2});
pretty(val)
double(val)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by