Integration in Matlab from negative to positive infinity
Show older comments
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.
Accepted Answer
More Answers (1)
Roger Stafford
on 10 Aug 2014
1 vote
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'.
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!