Why am I getting the "Index exceeds matrix dimensions" error when trying to perform triple integral of a function as indicated below? Thanks
이전 댓글 표시
h=@(x,y,z) cos(x)/sqrt((y.^2.)+(z.^2.)-2.*y.*z.*cos(x))
thirdans=triplequad(h,0,pi,1,3,1,3)
??? Index exceeds matrix dimensions.
Error in ==> quad at 85
if ~isfinite(y(7))
답변 (1개)
Matt Fig
2012년 10월 18일
You forgot one dot:
h=@(x,y,z) cos(x)./sqrt((y.^2.)+(z.^2.)-2.*y.*z.*cos(x));
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!