N = fewerbins(h) decreases
the number of bins in histogram h by 10% (rounded
down to the nearest integer) and returns the new number of bins.
For bivariate histograms, this decreases the bin count in both
the x and y directions.
N = fewerbins(h,direction),
where h must be a histogram2 object,
only decreases 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 decrease number of bins 'both' (default) | 'x' | 'y'
Direction to decrease the number of bins, specified as 'x', 'y',
or 'both'. Specify 'x' or 'y' to
only decrease 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].