How to plot a surface in cylindrical coordinates
42 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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:
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!