how to plot vector fields in matlab ??

2 visualizaciones (últimos 30 días)
Pabba Srinath
Pabba Srinath el 4 de Abr. de 2020
Respondida: Sriram Tadavarty el 4 de Abr. de 2020
create /prepare data for this vector field in spherical system and convert it to cartisian and then plot that cartisian in matlab
the vector fiels is: ? = ? *sin (phi) ?̂? − 1 /? * sin (theta)* cos (phi) ?̂phi + ?^ 2?̂theta.
  2 comentarios
Ameer Hamza
Ameer Hamza el 4 de Abr. de 2020
Your equation is not typeset properly. Can you attach it as an image?
Pabba Srinath
Pabba Srinath el 4 de Abr. de 2020
Image is attached

Iniciar sesión para comentar.

Respuestas (1)

Sriram Tadavarty
Sriram Tadavarty el 4 de Abr. de 2020
Hi Pabba,
You can look over the script provided here, which gives insights of how this can be done.
The other usable function for this is sph2cart function, which coverts the point in spherical coordinate system to a point XY coordinate system. The examples in the page, shows the way the function can be used.
Hope this helps.
Regards,
Sriram

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by