How do I plot this equation?

13 ビュー (過去 30 日間)
Marc Adams
Marc Adams 2018 年 2 月 10 日
回答済み: Walter Roberson 2018 年 2 月 10 日
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?

採用された回答

Walter Roberson
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 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by