height
Description
Examples
Create a tracking scenario object.
scene = trackingScenario;
Specify the terrain as magic(4)
and define the boundary of the terrain as a square centered at the origin.
terrain = magic(4)
terrain = 4×4
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
boundary = [-100 100; -100 100]; groundSurface(scene,Terrain=terrain,Boundary=boundary);
Obtain the surface manager object.
manager = scene.SurfaceManager
manager = SurfaceManager with properties: UseOcclusion: 1 Surfaces: [1×1 fusion.scenario.GroundSurface]
Get the heights of the surface at the origin and its four corners.
height0 = height(manager,[0 0]')
height0 = 8.5000
height1 = height(manager,[-100 -100]')
height1 = 16
height2 = height(manager,[-100 100]')
height2 = 4
height3 = height(manager,[100 -100]')
height3 = 13
height4 = height(manager,[100 100]')
height4 = 1
Input Arguments
Surface manager, specified as a SurfaceManager
object.
Positions of the surface to query, specified as a 2-by-N matrix of real values or a 3-by-N matrix of real values, where N is the number of positions.
If the IsEarthCentered
property of the tracking scenario is
specified as:
false
— Each column of a 2-by-N matrix represents the x- and y-coordinates of a position in meters. Each column of a 3-by-N matrix represents the x-, y-, and z-coordinates of a position in meters. Note that the z-coordinate is irrelevant for surface height querying.true
— Each column of the 2-by-N matrix represents the latitude and longitude of a position in degrees, in the geodetic frame. Each column of the 3-by-N matrix represents the latitude in degrees, longitude in degrees, and altitude in degrees of a position, in the geodetic frame. Note that the altitude is irrelevant for surface height querying.
Output Arguments
Heights of queried positions, returned as an N-element vector of real values in meters, where N is the number of queried positions.
Version History
Introduced in R2022a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)