Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Can someone please help?

조회 수: 1 (최근 30일)
J D
J D 2020년 3월 26일
마감: MATLAB Answer Bot 2021년 8월 20일

답변 (1개)

Star Strider
Star Strider 2020년 3월 26일
There are some problems.
First, ‘pv’ is not a function of ‘phi’, at least as written.
Second, use element-wise operations for multiplication and exponentiation (and division, however there are no division operations in ‘pv’).
This runs without error:
pv = @(R,theta,phi) (5*R*10*-3).*R.^2.*sin(theta);
Q = integral3(pv,0,2*pi,0,pi,2,3)
See the documentation on Array vs. Matrix Operations to understand element-wise operations.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by