Control altimeter appearance and behavior
Altimeters are components that represent an altimeter. Properties control the appearance and behavior of an altimeter. Use dot notation to refer to a particular object and property:
f = uifigure; altimeter = uiaeroaltimeter(f); altimeter.Altitude = 100;
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 20 feet and a major tick represents 100 feet.
For the second longest needle, a minor tick represents 200 feet and a major tick represents 1,000 feet.
For the shortest needle a minor tick represents 2,000 feet and a major tick represents 10,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 set to
0
, over 100,000, the needles stay set at 100,000.