Circular time plots using polarhistogram?
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi there,
I don't know how to make circular plots in Matlab. They can provide insight into patterns of activity based on time of day and are frequently used in research articles (like the attached figure). Is it possible to use polarhistogram to draw it? Thanks for your comments and suggestions! ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1298720/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1298720/image.png)
댓글 수: 0
채택된 답변
William Rose
2023년 3월 1일
Suppose you have the wind direction in degrees at 1 minute intervals for 1 day:
windDir=360*rand(1,1440);
Make a histogram of the wind:
polarhistogram(windDir)
Maybe you don;t like that histogram because the degrees do not look like a compass. Suppose also that you want the histogram to have 15 degree segments (pi/12) instead of 30 degrees. Make those fixes as follows::
figure; polarhistogram(windDir, 'BinWidth',pi/12)
set(gca,'ThetaZeroLocation','top','ThetaDir','clockwise');
Good luck!
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Preprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!