2D polar plot with colors according to an array

4 ビュー (過去 30 日間)
Tommaso Taormina
Tommaso Taormina 2020 年 5 月 11 日
コメント済み: Tommaso Taormina 2020 年 7 月 14 日
Dear everybody,
I have 359 histograms of data, refering to a data computed in several directions, and i want to plot them in a 2D polar way, as if each histogram was starting from the center of the circle and developing into their own directions, the binning is the same for all the histograms, the maximum value too. The color should refer to the frequency. I have collected everything in a structure, I have extracted the frequencies in vectors, but I don't know how to plot them.
Here the meaningful part of the code:
for deg = 1:359
c = histcounts(data(deg).lensF, [0:5:max_chord]);
data(deg).freq = c;
end

回答 (1 件)

Chaitanya Mallela
Chaitanya Mallela 2020 年 7 月 14 日
Refer the documentation polarhistogram
  1 件のコメント
Tommaso Taormina
Tommaso Taormina 2020 年 7 月 14 日
Thank you for the answer, but it doesn't solve my problem. The function polarhistogram creates one single histogram which is displayed, instead of along a line, along a circle. In my case I have 360 histograms, wichi i wanto to unfold radially in their specific direction, from the center of the cirle. Look at the image, maybe it explains better my problem.
Thank you

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by