Integration in Matlab from negative to positive infinity
Ältere Kommentare anzeigen
Hi,
I tried using this syntax:
EDU>> syms x
EDU>> syms a
EDU>> syms L
EDU>> int(exp(-L*(x-a)^2), x = -infinity..infinity)
to evaluate an integral seen inside the parentheses over x, where L and a are just constants. However error showed up saying: | "Error: The expression to the left of the equals sign is not a valid target for an assignment."
Am I missing something? Also is Matlab a good tool for somebody working in physics/applied math who need to evaluate a lot of integrals? Would you recommend anything else more?
Thanks for all replies.
Akzeptierte Antwort
Weitere Antworten (1)
Roger Stafford
am 10 Aug. 2014
1 Stimme
The equal sign "=" is what matlab is complaining about. Read the documentation and you will see no equal sign in the required call on 'int'.
1 Kommentar
Lukasz
am 11 Aug. 2014
Kategorien
Mehr zu Numeric Solvers finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!