Documentation Center

  • Trial Software
  • Product Updates

onem

Construct regular data grid of 1s

Syntax

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

Description

[Z,refvec] = onem(latlim,lonlim,scale) returns a regular data grid consisting entirely of 1s and a three-element referencing vector for the returned data grid, 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] = onem([46,51],[-79,-75],1)

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

See Also

| | | |

Was this topic helpful?