Main Content

campos

Set or get position of camera for satellite scenario viewer

Description

campos(viewer,lat,lon) sets the latitude and longitude of the camera for the specified satellite scenario viewer.

campos(viewer,lat,lon,height) sets the latitude, longitude, and ellipsoidal height of the camera. If you want to set only the height of the camera, use the camheight function instead.

campos(viewer) displays the latitude, longitude, and ellipsoidal height of the camera as a three-element vector.

[latOut,lonOut,heightOut] = campos(___) sets the position and then returns the latitude, longitude, and height of the camera. Specify any input argument combinations from previous syntaxes.

Input Arguments

collapse all

Satellite scenario viewer, specified as a satelliteScenarioViewer object. viewer must be specified as a scalar satelliteScenarioViewer object.[1]

Geodetic latitude of the camera, specified as a scalar in the range [–90, 90] degrees.

Geodetic longitude of the camera, specified as a scalar in the range [–360, 360].

Ellipsoidal height of the camera, specified as a numeric scalar in meters. Satellite scenario viewer objects use the WGS84 reference ellipsoid.

If you specify the height so that the camera is level with or below the surface of the Earth, then the campos function sets the height to a value one meter above the surface.

Output Arguments

collapse all

Geodetic latitude of the camera, returned as a numeric scalar in degrees.

Geodetic longitude of the camera, returned as a numeric scalar in degrees.

Ellipsoidal height of the camera, returned as a numeric scalar in meters. Satellite scenario viewer objects use the WGS84 reference ellipsoid. For more information about ellipsoidal height, see Geodetic Coordinates.

Introduced in R2021a

[1] Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.