Main Content

uiaeroheading

Create heading indicator component

Description

heading = uiaeroheading creates a heading indicator in a new figure. MATLAB® calls the uifigure function to create the figure.

The heading indicator displays measurements for aircraft heading in degrees.

The heading indicator represents values between 0 and 360 degrees.

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

heading = uiaeroheading(parent) specifies the object in which to create the heading indicator.

example

heading = uiaeroheading( ___ ,Name,Value) specifies heading 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 a heading indicator component named heading. By default, the function creates a uifigure object for the indicator object.

heading = uiaeroheading

Figure contains an object of type uiaeroheading.

heading = 
  HeadingIndicator (0) with properties:

     Heading: 0
    Position: [100 100 120 120]

  Use GET to show all properties

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

f = uifigure;
heading = uiaeroheading(f)

Figure contains an object of type uiaeroheading.

heading = 
  HeadingIndicator (0) with properties:

     Heading: 0
    Position: [100 100 120 120]

  Use GET to 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 heading indicator properties and descriptions for each type, see HeadingIndicator Properties.

Output Arguments

collapse all

Heading indicator component, returned as an object.

Version History

Introduced in R2018b