uiaeroheading

Create heading indicator component

Description

example

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.

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
heading = 

HeadingIndicator (0) with properties:

     Heading: 0
    Position: [100 100 120 120]

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

f = uifigure;
heading = uiaeroheading(f)
heading = 
HeadingIndicator (0) with properties:

     Heading: 0
    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 Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

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.

Introduced in R2018b