極座標のヒストグラムを作製

7 visualizaciones (últimos 30 días)
Saito
Saito el 12 de Oct. de 2020
Comentada: Saito el 23 de Nov. de 2021
0,45,90,135,180,,,,と360°を8等分した角度の刺激を与えた場合の反応強度の数値を極座標のヒストグラムにして表したいのですが、どうしたら良いでしょうか?
  1 comentario
Saito
Saito el 23 de Nov. de 2021
この方法で解決しました。有難うございます。

Iniciar sesión para comentar.

Respuestas (1)

Akira Agata
Akira Agata el 12 de Oct. de 2020
polarhistogram 関数を使うと極座標でのヒストグラムを作成できます。
たとえば8等分した角度ごとの測定値をプロットする場合、以下のようになるかと思います。
% 8等分した角度(theta)と測定値(val)の模擬データ
theta = 0:45:315;
val = randi(100,1,8);
figure
polarhistogram(...
'BinEdges', [deg2rad(theta),2*pi],...
'BinCounts',val)
  2 comentarios
Saito
Saito el 21 de Nov. de 2020
有難うございます。
Saito
Saito el 21 de Nov. de 2020
これを棒線グラフのようにして、エラーバーを加えたいときはどうしたら良いでしょうか?

Iniciar sesión para comentar.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!