필터 지우기
필터 지우기

How to plot a wind rose?

조회 수: 3 (최근 30일)
Karolina
Karolina 2015년 9월 23일
편집: Star Strider 2015년 9월 23일
I would like to plot a wind rose. I used the following code:
rose(A,8); % A is my data
view(90, -90);
But in the resultant wind rose plot the values for all bins are the same. Therefore I think that something is wrong, because in the histogram I see that I have much more data between 150-250 angles than in other angles. Does anyone know what can be wrong? My data are imported as an array, the data are sorted from the smallest to the biggest values.
I would also like to change the start angle for separation of my classes, from:
0-45, 45-90, 90-135, ...,
to
337.5-22.5, 22.5-67.5, 67.5-112.5, ...,

채택된 답변

Star Strider
Star Strider 2015년 9월 23일
편집: Star Strider 2015년 9월 23일
The angle (that appears to be ‘A’ in your code) has to be in radians. So you have to multiply ‘A’ (that seems to be in degrees) by (pi/180).
rose(A*pi/180, B)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by