function discrete Time-integrate with a variable

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 个)

For functions which are only known at discrete points, use matlab's 'trapz' function.

1 个评论

But i wanna integrate it in simulink. Is there a block to do it???

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Modeling 的更多信息

提问:

sia
2013-9-6

Community Treasure Hunt

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

Start Hunting!

Translated by