I want polar() but with 0 pointing up, and 90 degrees should be to the right, 180 down, and 270 degrees to the left, and everything in degrees.
Similar to wind rose
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi. I am looking for something like a wind rose, but with scatter points instead. I have vector Direction=[15,78,66,39,254,345]; and also vector Measurement=[1.1,1.2,0.9,2.0,0.8,1.6]; Now I would like to have each value, not as a histogram, but as a scatter point in the circular plot. The farther the point is away from origin, the larger the value should be. The angle from y-axis should be the same as the value in Direction, oriented to the right. So 90 is in east direction.
All suggestions and ideas are very much appreciated!
/Fredrik
채택된 답변
추가 답변 (2개)
Walter Roberson
2011년 12월 13일
To achieve the rotation, feed in ((90 - direction) * pi/180) as the theta, and change the text labels on the axis (which you needed to do anyhow because you wanted degrees.)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!