Skip to Main Content Skip to Search
Product Documentation

refmat2vec - Convert referencing matrix to referencing vector

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

% Verify the conversion of the geoid referencing vector to a
% referencing matrix.
load geoid;
R = refvec2mat(geoidlegend, size(geoid));
V = refmat2vec(R, size(geoid));

See Also

makerefmat | refvec2mat

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS