필터 지우기
필터 지우기

double integral over a curved region using trapz

조회 수: 3 (최근 30일)
ray sanchez
ray sanchez 2015년 5월 20일
I'm trying to solve a double integral using the trapezoidal rule. I was told to use this file exchange 2D trapezoidal rule to help solve it and the code
x = 0:0.1:1;
y = 0:0.1:1;
[X,Y] = meshgrid(x,y);
F = @(x,y) 1;
Z = F(X,Y);
Z(Y > sqrt(1-X.^2)) = 0;
Either the code is not working or I'm just not sure how to get it to work with the function in the file exchange link.
The integral I'm trying to solve is this.
Any help would be appreciated.

답변 (0개)

카테고리

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