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