syms back to numbers
1 回表示 (過去 30 日間)
古いコメントを表示
I am using syms to calculate equations with derivatives. I need to assign these syms number values to complete the analysis.
syms x y z
f=x^3 - 2 * y^4 + 4 * z^2
x=4
y=3
z=5
f=
0 件のコメント
回答 (1 件)
Sean de Wolski
2014 年 2 月 4 日
Use subs to substitute the values in:
syms x y z
f=x^3 - 2 * y^4 + 4 * z^2
subs(f,{x,y,z},{4,3,5})
And
6 件のコメント
Walter Roberson
2014 年 2 月 5 日
What does Affinity look like before substitution? And please cross-check that rr, theta, phi, and tt are all scalars.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!