Main Content

camheight

Set or get height of camera for Satellite Scenario Viewer

Since R2021a

Description

camheight(viewer,height) sets the ellipsoidal height of the camera for the specified Satellite Scenario Viewer.

example

heightOut = camheight(viewer,___) returns the ellipsoidal height of the camera. If the second input is height, then the function sets the output equal to the input height.

Examples

collapse all

Create a satellite scenario object.

sc = satelliteScenario;

Launch the Satellite Scenario Viewer.

v = satelliteScenarioViewer(sc);

Retrieve the height of the camera in the Satellite Scenario Viewer.

height = camheight(v)
height = 15000000

Input Arguments

collapse all

Satellite Scenario Viewer, specified as a scalar satelliteScenarioViewer object.1

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

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

Version History

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®.