フィルターのクリア

How can I integrate a function?

2 ビュー (過去 30 日間)
Miguel Reina
Miguel Reina 2017 年 3 月 22 日
編集済み: Jan 2017 年 3 月 22 日
For example if I have a vector with values that describe the cos(x) function, and as a result of integration i get the values of the sin(x) function. In my case my function is a flow signal (flow_proccessed) and i want to get the volume (vol). how can I do that?

採用された回答

Jan
Jan 2017 年 3 月 22 日
編集済み: Jan 2017 年 3 月 22 日
See cumtrapz :
x = 0:0.01:4*pi;
y = cos(x);
s = cumtrapz(x, y);
plot(x, y, 'r', x, s, 'b')

その他の回答 (0 件)

カテゴリ

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