Use of integrate without explicit function - defined by variable

조회 수: 10 (최근 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 CenterFile Exchange에서 Numerical 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