| Mapping Toolbox | ![]() |
Replace entries with certain values throughout a matrix map
Syntax
Description
mapout = changem(map,newcode,oldcode) returns a matrix map mapout identical to the input matrix map, except that each element of map with a value contained in the vector oldcode is replaced by the corresponding element of the vector newcode.
oldcode is 0 (scalar) by default, in which case newcode must be scalar. Otherwise, newcode and oldcode must be the same size.
Examples
Replace instances of 8 or 9 with 0's:
See Also
maskm |
Mask out specified matrix map entries |
| cen2geod | clabelm | ![]() |