フィルターのクリア

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