Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

syms first then add numbers

2 visualizaciones (últimos 30 días)
Philosophaie
Philosophaie el 17 de Sept. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Sept. de 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)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by