Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Can someone please help?

1 Ansicht (letzte 30 Tage)
J D
J D am 26 Mär. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021

Antworten (1)

Star Strider
Star Strider am 26 Mär. 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)
See the documentation on Array vs. Matrix Operations to understand element-wise operations.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by