| Mapping Toolbox | ![]() |
Create data grids containing NaNs
Syntax
map = nanm(latlim,lonlim,scale) returns a regular data grid consisting entirely of NaNs. The two-element vectors latlim and lonlim define the latitude and longitude limits of the geographic region. They should be of the form [north south] and [east west], respectively. The number of rows and columns per angle unit is set by the scalar value scale.
[map,refvec] = nanm(latlim,lonlim,scale) returns the three-element referencing vector for the returned map.
Example
[map,refvec] = nanm([46,51],[-79,-75],1) map = NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN refvec = 1 51 -79
See Also
limitm |
Data grid limits |
onem |
Create a data grid of ones |
sizem |
Row and column dimensions needed for map |
spzerom |
Create a sparse data grid of zeros |
zerom |
Create a full data grid of zeros |
| nanclip | navfix | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |