メインコンテンツ

update

Class: Aero.FixedWing
Namespace: Aero

Update Aero.FixedWing object

Syntax

aircraft = update(aircraft)

Description

aircraft = update(aircraft) updates the Name property in the Simulink.lookuptable.StructTypeInfo object of each Simulink.LookupTable coefficient in the Aero.FixedWing object hierarchy. The updated name is a compilation of all component Name values in the Aero.FixedWing hierarchy, with this format:

  • Listed in descending order

  • Separated by underscores (_)

  • Appended by the stateOutput and stateVariable values of each Simulink.LookupTable location

Input Arguments

expand all

Aero.FixedWing coefficient object, specified as a scalar, of type Aero.FixedWing, Aero.FixedWing.Surface, Aero.FixedWing.Control, Aero.FixedWing.Thrust, or Aero.FixedWing.Coefficient.

Output Arguments

expand all

Modified Aero.FixedWing object with the modified coefficients at the specified locations, returned as a scalar.

Examples

expand all

Update the aircraft name and view the updated coefficients.

aircraft = astSkyHogg;
aircraft.Properties.Name = 'NewName';
aircraft = update(aircraft);
aircraft.Coefficients.Values{1}.StructTypeInfo.Name
ans = 
'NewName_CD_Zero'

Version History

Introduced in R2021a