To rotate a UTM (Universal Transverse Mercator) grid in Matlab, you can use the affine2d
and imwarp
functions. Here is an example of rotating a UTM grid by 45 degrees:
main.m683 chars29 lines
This script defines a UTM grid in zone 31T, creates a grid of points, rotates the grid by 45 degrees using an affine transformation matrix, and then displays the original and rotated grids using plot
.
gistlibby LogSnag