MATLAB: Evaluation of Integration without Loops

integrationMATLAB

Hello all.
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,
Ahmad

Best Answer

I fixed it using cumtrapz() function.
Related Question