Use of integrate without explicit function - defined by variable

4 ビュー (過去 30 日間)
John Hey
John Hey 2020 年 6 月 15 日
コメント済み: John Hey 2020 年 6 月 15 日
Dear All,
I would like to integrate something which is not defined by a function (anoymous or otherwise. The 'function' is defined by a set of values iod a varable (y) at a number of points defined in another variable (x). I want to integate y with respect to x.
Is there some way of doing this? Graphically I could plot y against x and find the area under the graph. Is this the way I ahould do it using Matalb or is there something more sophisticated?
All help will be welcome.
John

回答 (1 件)

madhan ravi
madhan ravi 2020 年 6 月 15 日
  3 件のコメント
madhan ravi
madhan ravi 2020 年 6 月 15 日
cumulative kntegral
John Hey
John Hey 2020 年 6 月 15 日
Dear Madhan, I think I understand, but trapz does perfectly what I want. Thanks.

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

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by