How to plot a surface in cylindrical coordinates

43 ビュー (過去 30 日間)
Samuel White
Samuel White 2017 年 4 月 8 日
回答済み: Randy Acheson 2017 年 4 月 11 日
I have a matrix of radial distances which I would like to plot as a kind of cylinder. I want the row to represent height and the column to represent angle. Is this possible?
Many thanks, Sam

回答 (1 件)

Randy Acheson
Randy Acheson 2017 年 4 月 11 日
I don't see why this wouldn't work. There's no built-in MATLAB function to do this that I know of, so you would have to write your own. I would start by converting your matrix into proper cylindrical coordinates, then you can turn those coordinates into Cartesian with the 'pol2cart' function. The first step would have to be done by yourself, but here's another MATLAB Answers post about plotting proper cylindrical coordinates:

カテゴリ

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