Integration of two dimensional function

조회 수: 2 (최근 30일)
Floris Zoutman
Floris Zoutman 2011년 10월 6일
답변: August Brandberg 2019년 7월 2일
I have a function [[y_1,y_2]]=fun([x_1,x_2]) where x_1,x_2,y_1,y_2 are scalars (the function can be vectorized such that if x_1 and x_2 are k-vectors so are y_1 and y_2). y_i is only dependent on x_i. I am interested in evaluating the integral Y=int(y_1,domain of x_1)+int(y_2,domain of x_2). Can somebody help me find the correct function in Matlab? Many thanks for your help!

답변 (1개)

August Brandberg
August Brandberg 2019년 7월 2일
q = integral2(fun,xmin,xmax,ymin,ymax) approximates the integral of the function z = fun(x,y) over the planar region xminxxmax and ymin(x)yymax(x).

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by