expr2=collect(EXPR,'exp(-t)') Why is it wrong?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
zhenyu zeng
il 22 Apr 2019
Modificato: madhan ravi
il 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 Commenti
Risposta accettata
madhan ravi
il 22 Apr 2019
Modificato: madhan ravi
il 22 Apr 2019
expr2=collect(EXPR,exp(-t)) % no single quotes around the second argument
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!