uiaeroaltimeter
Create altimeter component
Syntax
Description
creates an
altimeter in a new figure. MATLAB® calls the altimeter
= uiaeroaltimeteruifigure
function to create the
figure.
The altimeter displays the altitude above sea level in feet, also known as the pressure altitude. It displays the altitude value with needles on a gauge and a numeric indicator.
The gauge has 10 major ticks. Within each major tick are five minor ticks. This gauge has three needles. Using the needles, the altimeter can display accurately only altitudes between 0 and 100,000 feet.
For the longest needle, an increment of a small tick represents 2000 feet and a major tick represents 10,000 feet.
For the second longest needle, a minor tick represents 20 feet and a major tick represents 100 feet.
For the shortest needle a minor tick represents 200 feet and a major tick represents 1,000 feet.
For the numeric display, the gauge shows values as numeric characters between 0 and 9,999 feet. When the numeric display value reaches 10,000 feet, the gauge displays the value as the remaining values below 10,000 feet. For example, 12,345 feet displays as 2,345 feet. When a value is less than 0 (below sea level), the gauge displays
0
. The needles show the appropriate value except for when the value is below sea level or over 100000 feet. Below sea level, the needles are set to0
, over 100,000, the needles stay set at 100,000.
Note
Use this function only with figures created using the
uifigure
function. Apps created using GUIDE or the
figure
function do not support flight instrument
components.
specifies altimeter properties using one or more altimeter
= uiaeroaltimeter( ___ ,Name,Value
)Name,Value
pair
arguments. Use this option with any of the input argument combinations in the previous
syntaxes.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2018b