How do I plot this equation?
조회 수: 13 (최근 30일)
이전 댓글 표시
So i have this equation z=r*sin(phi), with the following limits. 0<r<10, 0<phi<2*pi. Normally, to plot this surface, I would use meshgrid[X,Y] = ... , use surf(X,Y,Z) then add limits. However, I'm not really certain how to do this in the cylindrical coordinate system?
How would I go about setting up the meshgrid and the following plot?
댓글 수: 0
채택된 답변
Walter Roberson
2018년 2월 10일
Go ahead and set up the meshgrid in r and theta. But once you have r and theta and z, put the three of them through pol2cart() to get cartesian coordinates that you can then surf()
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!