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()
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 个评论
采纳的回答
更多回答(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!