How to use quadgk with a vector valued integral where the limit of integration is also a vector?

4 views (last 30 days)
Hi, I have an [1X1000] array E which I need to pass to a function namely func_energy, the output of which is another[1X1048] array. So the function func_energy takes one value of E each time from the array E and returns a vector (Say N1)for each value of E.
I need to integrate this array valued function N1 with respect to E using quadgk. The lower limit of this integration comes from another array Ec_old having same size as N1, while my upper limit is fixed(say a).
Any suggestions on how to go about doing this preferably not involving any for loops will be greatly appreciated.
Thanks, Dibakar

Answers (0)

Categories

Find more on Function Creation 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!