morebins
ヒストグラムのビンの数を増やす
説明
例
ヒストグラムのビンの数を増やす
1,000 個の乱数のヒストグラムをプロットし、histogram オブジェクトのハンドルを返します。
x = randn(1000,1); h = histogram(x)
h = Histogram with properties: Data: [1000x1 double] Values: [3 1 2 15 17 27 53 79 85 101 127 110 124 95 67 32 27 16 6 6 4 1 2] NumBins: 23 BinEdges: [-3.3000 -3.0000 -2.7000 -2.4000 -2.1000 -1.8000 -1.5000 -1.2000 -0.9000 -0.6000 -0.3000 0 0.3000 0.6000 0.9000 1.2000 1.5000 1.8000 2.1000 2.4000 2.7000 3 3.3000 3.6000] BinWidth: 0.3000 BinLimits: [-3.3000 3.6000] Normalization: 'count' FaceColor: 'auto' EdgeColor: [0 0 0] Use GET to show all properties
morebins
を使用してヒストグラムのビンの数を増やします。
morebins(h); morebins(h)
ans = 29
入力引数
h
— 入力ヒストグラム
histogram
オブジェクト | histogram2
オブジェクト
入力ヒストグラム。histogram
オブジェクトまたは histogram2
オブジェクトとして指定します。
h
をカテゴリカル ヒストグラムにすることはできません。
direction
— ビンの数を増やす方向
'both'
(既定値) | 'x'
| 'y'
ビンの数を増やす方向。'x'
、'y'
、'both'
のいずれかを指定します。指定した方向のみについてビン数を増やし、別の方向のビン数は変更しない場合、'x'
または 'y'
を指定します。
出力引数
N
— ビンの数
スカラー | ベクトル
ビンの数。スカラーまたはベクトルとして返されます。N
は、増やした後のヒストグラムの新しいビンの数です。二変量ヒストグラム プロットの場合、N
は 2 要素ベクトル [nx ny]
です。
バージョン履歴
R2014b で導入
参考
histogram
| histcounts
| histogram2
| histcounts2
| fewerbins
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)