Main Content

Aero.Aircraft.Environment Class

Namespace: Aero

Properties defining and managing aircraft environment

Since R2021a

Description

An object of the Aero.Aircraft.Environment class defines and manages aircraft environments.

Class Attributes

Sealed
true

For information on class attributes, see Class Attributes.

Creation

Description

aeroAircraftEnvironment = Aero.Aircraft.Environment creates a single Aero.Aircraft.Environment object with default property values.

aeroAircraftEnvironment = Aero.Aircraft.Environment(N) creates an N-by-N matrix of Aero.Aircraft.Environment objects with default property values.

aeroAircraftEnvironment = Aero.Aircraft.Environment(M,N,P,...) or Aero.Aircraft.Environment([M N P ...]) creates an M-by-N-by-P-by-... array of Aero.Aircraft.Environment objects with default property values.

aeroAircraftEnvironment = Aero.Aircraft.Environment(size(A)) creates an Aero.Aircraft.Environment object that is the same size as A and all Aero.Aircraft.Environment objects.

aeroAircraftEnvironment = Aero.Aircraft.Environment(__,property,propertyValue) creates an array of Aero.Aircraft.Environment objects with property, propertyValue pairs applied to each of the Aero.Aircraft.Environment array objects. For a list of properties, see Properties.

Input Arguments

expand all

Number of aircraft objects, specified as a scalar.

Number of aircraft objects, specified as a scalar.

Number of aircraft objects, specified as a scalar.

Size of aircraft object, specified as a scalar.

Properties

expand all

Wind velocity in NED coordinates, specified as a three-element vector in these units:

UnitUnit System

Meters per second (m/s)

'Metric'

Feet per second (ft/s)

'English (kts)'

Knots (kts)

'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Density of air, specified as a scalar, in these units:

UnitUnit System

Kilograms per meter3 (kg/m3)

'Metric'

Slugs per foot3 (slug/ft3)

'English (kts)' and 'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Static air temperature, specified as a scalar numeric in units specified by the temperature system.

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Static air pressure, specified as a scalar numeric in these units:

UnitUnit System

Pascals (Pa)

'Metric'

Pounds per feet2 (psf)

'English (kts)' and 'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Speed of sound, specified as a scalar numeric in these units:

UnitUnit System

Meters per second (m/s)

'Metric'

Feet per second (ft/s)

'English (kts)'

Knots (kts)

'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Acceleration due to gravity, specified as a scalar numeric in these units:

UnitUnit System

Meters per second2 (m/s2)

'Metric'

Feet per seconds (ft/s2)

'English (kts)' and 'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Aero.Aircraft.Properties object, specified as a scalar.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

Create an Aero.Aircraft.Environment object.

env = Aero.Aircraft.Environment('Gravity', 32.2)
env = 
  Environment with properties:

    WindVelocity: [0 0 0]
         Density: 1.2250
     Temperature: 288.1500
        Pressure: 101352
    SpeedOfSound: 340.2941
         Gravity: 32.2000
      Properties: [1x1 Aero.Aircraft.Properties]

Limitations

You cannot subclass Aero.Aircraft.Environment.

Version History

Introduced in R2021a