hista
Bin counts for geographic points using equal-area bins
Syntax
[latbin,lonbin,count] = hista(lat,lon)
[latbin,lonbin,count] = hista(lat,lon,binarea)
[latbin,lonbin,count] = hista(lat,lon,binarea,spheroid)
[latbin,lonbin,count] = hista(___,angleunits)
Description
[latbin,lonbin,count] = hista(lat,lon) bins
the geographic locations indicated by vectors lat and lon,
using equal area binning on a sphere. The default bin area is 100
square kilometers. The latbin and lonbin outputs
are column vectors indicating the centers of non-empty bins. count matches latbin and lonbin in
size, with each element containing a positive integer equal to the
number of occurrences in the corresponding bin.
Binning is performed on a mesh within a quadrangle whose latitude and longitude limits match the extrema of the input locations. The input and output latitudes and longitudes are in units of degrees.
[latbin,lonbin,count] = hista(lat,lon,binarea) uses
the bin size specified by the input binarea, which
must be in square kilometers
[latbin,lonbin,count] = hista(lat,lon,binarea,spheroid)
bins the data on the reference spheroid defined by spheroid.
spheroid is a referenceEllipsoid (oblateSpheroid) object, a referenceSphere object, or a vector of the form [semimajor_axis
eccentricity]. The eccentricity/flattening of the spheroid is used in
determining the latitude extent of the bins. The semimajor axis of the spheroid is used
to determine the longitude extent of the bins, but if the length unit of the spheroid is
unspecified, the mean radius of the earth in kilometers is used as the equatorial
radius.
[latbin,lonbin,count] = hista(___,angleunits)
where angleunits defines the angle units of the inputs and outputs,
specified as 'degrees' or 'radians'.
Examples
Version History
Introduced before R2006a