Mapping Toolbox Previous page   Next Page
hista

Create spatial equal-area histogram

Syntax

[lat,lon,num] = hista(lats,lons) returns the center coordinates of equal-area bins and the number of observations falling in each based on the geographically distributed input data.

[lat,lon,num] = hista(lats,lons,binarea) specifies the equal-area bin size, in square kilometers. It is 100 km2 by default.

[lat,lon,num] = hista(lats,lons,binarea,ellipsoid) specifies the elliptical definition of the Earth to be used with the two-element ellipsoid vector. The default ellipsoid model is a spherical Earth, which is sufficient for most applications.

[lat,lon,num] = hista(lats,lons,binarea,units) specifies the standard angle unit string. The default value is 'degrees'.

Examples

Create random data:

Bin the data in 50-by-50 km cells (2500 sq km):

See Also

eqa2grn
grn2eqa
Greenwich/equal-area conversion
histr
Spatial equirectangular histogram


Previous page  hidem histr Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS