Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Can someone please help?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponses (1)
Star Strider
le 26 Mar 2020
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)
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!