English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how do i plot a function like the one below in matlab. Should i convert it to a cartesian or can i plot it straight forward.

(rho) = 1 + 0.4 * sin(phi) * sin(theta)

0 <= theta <= 2*pi,
0 <= phi <= pi

2006-09-27 19:25:10 · 2 answers · asked by joker 2 in Science & Mathematics Mathematics

2 answers

You can plot it straight forward using plot3(rho,theta,phi) or convet to cartesian first then plot3 ( depends on whether you are happy to see theta and phi displayed this way or if you want to see a trace where distances and angles are preserved). Alternatively, if phi and theta are values on a regular grid generated using meshplot for example, you might want to make a contour plot of rho.

best of luck - Mike

2006-09-27 21:55:37 · answer #1 · answered by Anonymous · 0 0

Graphing Spherical Coordinates

2016-11-06 20:33:48 · answer #2 · answered by lyssa 4 · 0 0

fedest.com, questions and answers