how to plot vector fields in matlab ??

조회 수: 2 (최근 30일)
Pabba Srinath
Pabba Srinath 2020년 4월 4일
답변: Sriram Tadavarty 2020년 4월 4일
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
Ameer Hamza
Ameer Hamza 2020년 4월 4일
Your equation is not typeset properly. Can you attach it as an image?
Pabba Srinath
Pabba Srinath 2020년 4월 4일
Image is attached

댓글을 달려면 로그인하십시오.

답변 (1개)

Sriram Tadavarty
Sriram Tadavarty 2020년 4월 4일
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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by