expr2=collect(EXPR,'exp(-t)') Why is it wrong?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
zhenyu zeng
am 22 Apr. 2019
Bearbeitet: madhan ravi
am 22 Apr. 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 Kommentare
Akzeptierte Antwort
madhan ravi
am 22 Apr. 2019
Bearbeitet: madhan ravi
am 22 Apr. 2019
expr2=collect(EXPR,exp(-t)) % no single quotes around the second argument
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!