How do I perform numerical integration containing multiple variables?

1 vue (au cours des 30 derniers jours)
Saurabh Singh
Saurabh Singh le 27 Mai 2014
Réponse apportée : rifat le 27 Mai 2014
I have a function of form F=f(x,y). I need to integrate it over x numerically. I know the ranges of both x and y. What is the best way to do it?
Note: It is not a mulitple integral.

Réponses (1)

rifat
rifat le 27 Mai 2014
Since it is not a double integral, you want to integrate f(x,y) at a particular value of y=y1. Evaluate the function at y=y1. Then use trapz() command to perform numerical integration via trapezoidal method.

Catégories

En savoir plus sur Numerical Integration and Differentiation 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!

Translated by