expr2=coll​ect(EXPR,'​exp(-t)') Why is it wrong?

1 visualización (últimos 30 días)
zhenyu zeng
zhenyu zeng el 22 de Abr. de 2019
Editada: madhan ravi el 22 de Abr. de 2019
EXPR=str2sym('(x^2+x*exp(-t)+1)*(x+exp(-t))')
expr1=collect(EXPR)
expr2=collect(EXPR,'exp(-t)')
Why expr2 shows: sym.charToFunction (line 26) Invalid variable name

Respuesta aceptada

madhan ravi
madhan ravi el 22 de Abr. de 2019
Editada: madhan ravi el 22 de Abr. de 2019
expr2=collect(EXPR,exp(-t)) % no single quotes around the second argument

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by