Mapping Toolbox
  Go to function:
    Search    Help Desk 
findm    Examples   See Also

Find latitude and longitude coordinates for nonzero map entries

Syntax

Description

This function works in two modes: with a regular matrix restriction and without.

[lat,lon] = findm(map,maplegend) returns latitude and longitude vectors lat and lon, which provide the locations of all nonzero entries of the regular matrix map, map, with three-element map legend vector maplegend.

[lat,lon,val] = findm(map,maplegend) also returns the values, val, of the matrix map corresponding to the lat and lon locations.

[lat,lon,val] = findm(latin,lonin,map) removes the regular matrix restriction. Two matrices, latin and lonin, the same size as map, must provide cell-by-cell latitude and longitude coordinates matched with the corresponding entries of map.

mat = findm(...) returns a single output mat of the form [lat,lon].

Examples

The entered map can also be the result of a logical statement. Where is elevation greater than 5500 meters?

These points are in the Himalayas.

See Also

find
Find indices and values of nonzero elements (see online MATLAB Function Reference)


[ Previous | Help Desk | Next ]