Mapping Toolbox | ![]() ![]() |
Matrix Maps
A matrix in which each element represents a value corresponding to a specific geographic area also forms a map. In this case, the geographic data is in matrix format, which is often called raster format. However, the Mapping Toolbox makes great use of the powerful matrix manipulation capabilities of MATLAB to fully exploit this map type, so the term matrix map is more appropriate.
When the data consists of surface elevations, the map can also be referred to as a digital elevation map (DEM) or topographical map.
As an example of this map type, consider a 180-by-360 matrix. Each row represents one degree of latitude, and each column represents one degree of longitude. Each entry of this matrix is the average elevation, in meters, for the one-degree-by-one-degree region of the Earth to which its row and column correspond. This is, in fact, the topo
matrix that is provided in the MATLAB product in the workspace of the same name.
To display the matrix map, type the following:
clma % clears map load topo axesm sinusoid meshlsrm(topo,topolegend)
The topo
matrix is displayed as a lighted, shaded relief map in a Sinusoidal projection:
Note that the meaning of the map and the projection in which it is displayed are completely independent. The topo
variable is a map whether it is displayed or not, and it is the same map no matter how it is displayed.
![]() | Types of Maps in the Mapping Toolbox | Composite Maps | ![]() |