Main Content

uiaeroairspeed

Create airspeed indicator component

Description

example

airspeed = uiaeroairspeed creates an airspeed indicator in a new figure. MATLAB® calls the uifigure function to create the figure.

The airspeed indicator displays measurements for aircraft airspeed in knots.

By default, minor ticks represent 10-knot increments and major ticks represent 40-knot increments. The parameters Minimum and Maximum determine the minimum and maximum values on the gauge. The number and distribution of ticks is fixed, which means that the first and last tick display the minimum and maximum values. The ticks in between distribute evenly between the minimum and maximum values. For major ticks, the distribution of ticks is (Maximum-Minimum)/9. For minor ticks, the distribution of ticks is (Maximum-Minimum)/36.

The airspeed indicator has scale color bars that allow for overlapping for the first bar, displayed at a different radius. This different radius lets the gauge represent VFE (maximum speed with flap extended) and VSO (stall speed with flap extended) accurately for aircraft airspeed and stall speed.

If the value of the input is under Minimum, the needle displays 5 degrees under the Minimum value. If the value exceeds the Maximum value, the needle displays 5 degrees over the maximum tick.

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.

example

airspeed = uiaeroairspeed(parent) specifies the object in which to create the airspeed indicator.

airspeed = uiaeroairspeed( ___ ,Name,Value) specifies airspeed indicator properties using one or more Name,Value pair arguments. Use this option with any of the input argument combinations in the previous syntaxes.

Examples

collapse all

Create an airspeed indicator component named airspeed. By default, the function creates a uifigure object for the indicator object.

airspeed = uiaeroairspeed
airspeed = 

  AirspeedIndicator (0) with properties:

            Airspeed: 0
         ScaleColors: [4×3 double]
    ScaleColorLimits: [4×2 double]
              Limits: [40 400]
            Position: [100 100 120 120]

  Show all properties

Create a figure window to contain the airspeed indicator component, then create an airspeed indicator component named airspeed.

f = uifigure;
airspeed = uiaeroairspeed(f)
airspeed = 

  AirspeedIndicator (0) with properties:

            Airspeed: 0
         ScaleColors: [4×3 double]
    ScaleColorLimits: [4×2 double]
              Limits: [40 400]
            Position: [100 100 120 120]

  Show all properties

Input Arguments

collapse all

Parent container, specified as a Figure object created using the uifigure function or one of its child containers: Tab, Panel, ButtonGroup, or GridLayout. If you do not specify a parent container, MATLAB calls the uifigure function to create a new Figure object that serves as the parent container.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

For a full list of airspeed indicator properties and descriptions for each type, see AirspeedIndicator Properties.

Output Arguments

collapse all

Airspeed indicator component, returned as an object.

Version History

Introduced in R2018b