フィルターのクリア

function discrete Time-integrate with a variable

2 ビュー (過去 30 日間)
sia
sia 2013 年 9 月 6 日
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 件のコメント
Zhang lu
Zhang lu 2013 年 9 月 6 日
編集済み: Zhang lu 2013 年 9 月 6 日
Do u mean ?
syms x
f='sin(10-x*a)';
int(f,x,0,5)

サインインしてコメントする。

回答 (1 件)

Roger Stafford
Roger Stafford 2013 年 9 月 6 日
For functions which are only known at discrete points, use matlab's 'trapz' function.
  1 件のコメント
sia
sia 2013 年 9 月 7 日
But i wanna integrate it in simulink. Is there a block to do it???

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by