This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

uiaerorpm

Create revolutions per minute (RPM) indicator component

Syntax

rpm = uiaerorpm
rpm = uiaerorpm(parent)
rpm = uiaerorpm( ___ ,Name,Value)

Description

example

rpm = uiaerorpm creates an RPM indicator in a new figure. MATLAB® calls the uifigure function to create the figure.

The RPM indicator displays measurements for engine revolutions per minute in percentage of RPM.

The range of values for RPM goes from 0 to 110%. Minor ticks represent increments of 5% RPM and major ticks represent increments of 10% RPM.

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

rpm = uiaerorpm(parent) specifies the object in which to create the RPM indicator.

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

rpm = uiaerorpm
rpm = 

  RPMIndicator (0) with properties:

                 RPM: 0
         ScaleColors: [3×3 double]
    ScaleColorLimits: [3×2 double]
            Position: [100 100 120 120]

  Show all properties

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

figure = uifigure;
rpm = uiaerorpm(figure)
rpm = 

  RPMIndicator (0) with properties:

                 RPM: 0
         ScaleColors: [3×3 double]
    ScaleColorLimits: [3×2 double]
            Position: [100 100 120 120]

  Show all properties

Input Arguments

collapse all

Parent container, specified as a Figure created using the uifigure function, or one of its child containers: Tab, Panel, ButtonGroup, or GridLayout. If no container is specified, 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 RPM indicator properties and descriptions for each type, see RPMIndicator Properties.

Output Arguments

collapse all

RPM indicator component, returned as an object.

Introduced in R2018b