極座標のヒストグラムを作製
조회 수: 8 (최근 30일)
이전 댓글 표시
답변 (1개)
Akira Agata
2020년 10월 12일
polarhistogram 関数を使うと極座標でのヒストグラムを作成できます。
たとえば8等分した角度ごとの測定値をプロットする場合、以下のようになるかと思います。
% 8等分した角度(theta)と測定値(val)の模擬データ
theta = 0:45:315;
val = randi(100,1,8);
figure
polarhistogram(...
'BinEdges', [deg2rad(theta),2*pi],...
'BinCounts',val)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/378696/image.png)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!