主要内容

setModes

Class: Aero.FixedWing.Specification
Namespace: Aero

Set list of flying quality analysis modes that are active given input modes

Since R2025a

Syntax

specificationOut = setModes(specificationIn,modes)

Description

specificationOut = setModes(specificationIn,modes) sets a list of the flying quality analysis modes that are active given a list of input modes. The analyzeFlyingQualities method computes flying qualities for this list of input, or active, modes.

Input Arguments

expand all

Aero.FixedWing.Specification object, specified as a scalar.

List of flight dynamic modes, specified as a list of Phugoid, ShortPeriod, DutchRoll, Spiral, or RollSubsidence.

Output Arguments

expand all

Aero.FixedWing.Specification object, returned as the modified Aero.FixedWing.Specification object.

Examples

expand all

Set the list of modes for the Aero.FixedWing.Specfication object, spec.

Create the Aero.FixedWing.Specfication object.

spec = Aero.FixedWing.Specification
spec = 
  Specification with properties:

           Phugoid: [1×1 Aero.FixedWing.FlyingQuality.PhugoidMode]
       ShortPeriod: [1×1 Aero.FixedWing.FlyingQuality.ShortPeriodMode]
         DutchRoll: [1×1 Aero.FixedWing.FlyingQuality.DutchRollMode]
            Spiral: [1×1 Aero.FixedWing.FlyingQuality.SpiralMode]
    RollSubsidence: [1×1 Aero.FixedWing.FlyingQuality.RollSubsidenceMode]
        Properties: [1×1 Aero.Aircraft.Properties]

Set the flight modes in spec and update spec with the list of modes, "Phugoid" and "DutchRoll".

spec = setModes(spec,["Phugoid","DutchRoll"])
spec = 
  Specification with properties:

           Phugoid: [1×1 Aero.FixedWing.FlyingQuality.PhugoidMode]
       ShortPeriod: [1×1 Aero.FixedWing.FlyingQuality.ShortPeriodMode]
         DutchRoll: [1×1 Aero.FixedWing.FlyingQuality.DutchRollMode]
            Spiral: [1×1 Aero.FixedWing.FlyingQuality.SpiralMode]
    RollSubsidence: [1×1 Aero.FixedWing.FlyingQuality.RollSubsidenceMode]
        Properties: [1×1 Aero.Aircraft.Properties]

Get the updated list of modes for the specification, spec.

Version History

Introduced in R2025a