| Mapping Toolbox™ | ![]() |
tf = ingeoquad(lat, lon, latlim, lonlim)
tf = ingeoquad(lat, lon, latlim, lonlim) returns an array tf that has the same size as lat and lon. tf(k) is true if and only if the point lat(k), lon(k) falls within or on the edge of the geographic quadrangle defined by latlim and lonlim. latlim is a vector of the form [southern-limit northern-limit], and lonlim is a vector of the form [western-limit eastern-limit]. All angles are in units of degrees.
Load and display a digital elevation model (DEM) including the Korean Peninsula:
korea = load('korea');
[latlim, lonlim] = limitm(korea.map, korea.refvec);
figure('Color','white')
worldmap([20 50],[90 150])
geoshow(korea.map, korea.refvec, 'DisplayType', 'texturemap');
colormap(demcmap(korea.map))
Generate a track that crosses the DEM:
[lat, lon] = track2(23, 110, 48, 149, [1 0], 'degrees', 20); geoshow(lat, lon, 'DisplayType', 'line')
Identify and mark points on the track that fall within the quadrangle outlining the DEM:
tf = ingeoquad(lat, lon, latlim, lonlim); geoshow(lat(tf), lon(tf), 'DisplayType', 'point')

![]() | ind2rgb8 | intersectgeoquad | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |