N = morebins(h)
increases the number of bins in histogram h by 10% (rounded up to
the nearest integer) and returns the new number of bins.
For bivariate histograms, this increases the bin count in both the
x and y directions.
N = morebins(h,direction),
where h must be a histogram2 object, only
increases the number of bins in the dimension specified by
direction. The direction option can be
'x', 'y', or 'both'.
The default value is 'both'.
direction — Direction to increase number of bins 'both' (default) | 'x' | 'y'
Direction to increase the number of bins, specified as
'x', 'y', or
'both'. Specify 'x' or
'y' to only increase the number of bins in that
direction while leaving the number of bins in the other direction
constant.
Number of bins, returned as a scalar or vector. N is
the new number of bins for the histogram after increase. For bivariate
histogram plots, N is a two-element vector, [nx
ny].