How to plot a surface in cylindrical coordinates
조회 수: 43 (최근 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!