refmat2vec
(Removed) Convert referencing matrix to referencing vector
refmat2vec
has been removed. Instead, convert referencing
matrices to geographic raster reference objects using the refmatToGeoRasterReference
function. For more information, see Version History.
Syntax
refvec = refmat2vec(R,s)
Description
refvec = refmat2vec(R,s)
converts a
referencing matrix, R
, to the three-element referencing vector
refvec
. R
is a 3-by-2 referencing matrix
defining a two-dimensional affine transformation from pixel coordinates to spatial
coordinates. s
is the size of the array (data grid) that is being
referenced. refvec
is a 1-by-3 referencing vector having elements
[cells/degree north-latitude west-longitude]
with latitude and
longitude limits specified in degrees.
Examples
% Convert a sample referencing matrix to a % referencing vector. N = rand(180,360); refmat = [0 1; 1 0; -0.5 -90.5]; V = refmat2vec(refmat,size(N));