how to write a function that contains a integration?

3 views (last 30 days)
how to write above equation in matlab here rho(E) is constant

Answers (1)

Star Strider
Star Strider on 4 Apr 2016
See the documentation for the integral function. (If you have an earlier version that does not have integral, use the quad function and its friends.)
For help on writing the function to use with it, see the documentation on Function Basics.

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!