This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Construct regular data grid of 0s

zerom is not recommended and may be removed in a future release. Instead, use georefcells to construct a geographic raster reference object and then use zeros to initialize a data grid of the appropriate size:

R = georefcells(latlim,lonlim,1/scale,1/scale);
Z = zeros(R.RasterSize);


[Z,refvec] = zerom(latlim,lonlim,scale)


[Z,refvec] = zerom(latlim,lonlim,scale) returns a full regular data grid consisting entirely of 0s and a three-element referencing vector for the returned Z. The two-element vectors latlim and lonlim define the latitude and longitude limits of the geographic region. They should be of the form [south north] and [west east], respectively. The scalar scale specifies the number of rows and columns per degree of latitude and longitude.


[Z,refvec] = zerom([46,51],[-79,-75],1)

Z =
     0     0     0     0
     0     0     0     0
     0     0     0     0
     0     0     0     0
     0     0     0     0
refvec =
     1    51   -79

See Also

| | | |

Introduced before R2006a

Was this topic helpful?