function discrete Time-integrate with a variable

2 次查看(过去 30 天)
Hello,
I wanna to integrate a function with a variable.
E.g. f(x) = sin(10-x)
But i dont know how i can do it when i have a variable.
Can u guys help me???
THX

回答(1 个)

Roger Stafford
Roger Stafford 2013-9-6
For functions which are only known at discrete points, use matlab's 'trapz' function.

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by