histogram2から数値テーブルを作成したい
Afficher commentaires plus anciens
histogram2は2変量頻度分布図に作成されますが、この図から数値テーブルを作成したいと思います。
ヒストグラムからは全体的なデータの分布を把握し、加工用としてテーブルの値をピックアップして利用したいためです。
詳しい方ご回答よろしくお願いします。
Réponses (1)
Hiro Yoshino
le 2 Août 2022
Modifié(e) : Hiro Yoshino
le 2 Août 2022
histcount2 を使うと良いかと思います。以下の N でテーブル(行列) を得られます。
https://jp.mathworks.com/help/matlab/ref/histcounts2.html
x = randn(100,1);
y = randn(100,1);
[N,Xedges,Yedges] = histcounts2(x,y)
histogram2(x,y,Xedges,Yedges)
Catégories
En savoir plus sur データ分布プロット dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!