nanm

(To be removed) Construct regular data grid of NaNs

nanm will be removed in a future release. Use the georefcells and NaN functions instead. For more information, see Compatibility Considerations.

Syntax

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

Description

[Z,refvec] = nanm(latlim,lonlim,scale) returns a regular data grid consisting entirely of NaNs 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.

Examples

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

Z =
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
   NaN   NaN   NaN   NaN
refvec =
     1    51   -79

Compatibility Considerations

expand all

Not recommended starting in R2015b

See Also

| | | |

Introduced before R2006a