Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
syms first then add numbers
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (1)
Walter Roberson
am 17 Sep. 2013
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)
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!