F = @(x,y) y*sqrt(x.^2 - y.^2);
ymax = @(x)x;
q = integral2(F,1,2,0,ymax)
I need help with computing this double integral. my bounds for y are 0 and x, but it won't work even when I make ymax a function handle.

 채택된 답변

Torsten
Torsten 2022년 4월 22일

0 개 추천

F = @(x,y) y.*sqrt(x.^2 - y.^2);
instead of
F = @(x,y) y*sqrt(x.^2 - y.^2);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Profile and Improve Performance에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 4월 22일

답변:

2022년 4월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by