expr2=collect(EXPR,'exp(-t)') Why is it wrong?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
zhenyu zeng
le 22 Avr 2019
Modifié(e) : madhan ravi
le 22 Avr 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
0 commentaires
Réponse acceptée
madhan ravi
le 22 Avr 2019
Modifié(e) : madhan ravi
le 22 Avr 2019
expr2=collect(EXPR,exp(-t)) % no single quotes around the second argument
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Assumptions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!