Help with the integral function
显示 更早的评论
I am trying to use the integral fucntion to solve this problem:

This is my code:

and I keep getting this error:
Error using integral (line 82)
First input argument must be a function
handle.
Any help would be great, Thanks!
回答(1 个)
Star Strider
2021-2-18
0 个投票
It appears that what you want to integrate could be vectors, not functions. If so, use the trapz (or cumtrapz) function to do a trapezoidal integration.
2 个评论
Hannah Evans
2021-2-18
Star Strider
2021-2-18
You will need to supply more than an image of your code if you want help to solve this.
First, my version of MATLAB will not run images of code, only actual code, and second, I need to know what the data are that you’re working with, such as what ‘Sva104’ and the others are.
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!