主要内容

pickpoints

R2026b

Interactively pick points in viewer

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    [lat,lon,ht] = pickpoints(v,numpoints) enables you to interactively identify the coordinates of numpoints points within the specified viewer. To select a point, move your cursor to the desired location and press the left mouse button. To stop before all numpoints points are selected, press the Enter or Escape key. The function returns automatically after you pick the specified number of points.

    [lat,lon,ht] = pickpoints(v) enables you to identify an unlimited number of points until you press the Enter or Escape key.

    Input Arguments

    collapse all

    Viewer, specified as a GlobeViewer object.

    Number of points to pick, specified as a positive integer.

    Output Arguments

    collapse all

    Latitudes in degrees, returned as an m-by-1 vector. The value m is the number of points you selected.

    Longitudes in degrees, returned as an m-by-1 vector. The value m is the number of points you selected.

    Heights in meters above the terrain, returned as an m-by-1 vector. The value m is the number of points you selected.

    Tips

    The pickpoints function ignores points you select from the sky and points you select from outside the bounds of custom terrain.

    Version History

    Introduced in R2026b

    See Also

    Functions