How to solve integral numerically in Matlab?

조회 수: 1 (최근 30일)
Qudsiya  Irum
Qudsiya Irum 2017년 9월 22일
답변: Walter Roberson 2017년 9월 22일
if R=integral(10*exp(-60/{T(t)*Ni(x)}*Ni(x)), integral limit, x=0 to x=10 Ni(x) is 1-D interpolation function as used in finite element method, T is function of time, shape function is function of length. How to solve integral in Matlab if using "Gauss quadrature rule" or if there some command guidance to be written in code. Please I need guidance.
Thank you
  댓글 수: 1
Jan
Jan 2017년 9월 22일
Is this integral a function of t or of x?
Did you read the documentation already?
doc integral

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 9월 22일
If your interpolation does not have continuous first derivatives (linear interpolation does not) then you need to use the waypoints parameter of integrate() to designate all of the change points as waypoints.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by