N= fewerbins(h)decreases the number of bins in histogramhby 10% (rounded down to the nearest integer) and returns the new number of bins.
For bivariate histograms, this decreases the bin count in both thexandydirections.
N= fewerbins(h,direction), wherehmust be ahistogram2object, only decreases the number of bins in the dimension specified bydirection. Thedirectionoption 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.Nis the new number of bins for the histogram after increase. For bivariate histogram plots,Nis a two-element vector,[nx ny].
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.