I fixed it using cumtrapz() function.
Evaluation of Integration without Loops
4 views (last 30 days)
Show older comments
I have a mathematical expression takes the following form,
where C is known scalar, and or is known vector. The question here is, Does MATLAB have some functions to evaluate this integral function without using loops (I have the solution with for loop)?
I am trying to look for the minimum time the PC takes to evaluate the function becasue I am optimizing the scalar C against some objective function. For example, does conv() can help here by anyhow?
Thanks a lot,
More Answers (1)
madhan ravi on 13 Jan 2021
Find more on Numerical Integration and Differentiation 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!