Main Content

setCoefficient

Class: Aero.FixedWing.Thrust
Namespace: Aero

Set coefficient values for Aero.FixedWing.Thrust object

Since R2021a

Syntax

fixedWingThrust = setCoefficient(fixedWingThrust,stateOutput,stateVariable,value)
fixedWingThrust = setCoefficient(___,Name,Value)

Description

fixedWingThrust = setCoefficient(fixedWingThrust,stateOutput,stateVariable,value) sets the coefficient value value to the coefficient specified by stateOutput and stateVariable and returns the modified thrust object.

fixedWingThrust = setCoefficient(___,Name,Value) sets the coefficient value value to the coefficient specified by stateOutput and stateVariable and returns the modified thrust object.

Input Arguments

expand all

Aero.FixedWing.Thrust object on which to set coefficient, specified as a scalar.

State output, specified as a 6-by-1 vector where each entry is a valid state output. For more information on state outputs, see Aero.FixedWing.Coefficient.

Data Types: char | string

State variable, specified as a vector where each entry is a valid state variable. Valid state variables depend on the coefficients defined on the object. For more information on fixed-wing states, see Aero.FixedWing.State.

Data Types: char | string

State values, specified as a vector of cells where each cell is a numeric constant or a Simulink.LookupTable object. For more information on coefficient values, see Aero.FixedWing.Coefficient.

Data Types: double

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: 'AddVariable','on'

Component name, specified as a string. Valid component names depend on the object properties and all subcomponents on the object. The default component name is the current object.

Data Types: char | string

Option to add state variable if desired state variable is missing, specified as:

  • 'on' — Add a state variable.

  • 'off' — Do not add a state variable.

Data Types: logical

Output Arguments

expand all

Modified fixed-wing thrust object on which coefficient is set, returned as Aero.FixedWing.Thrust.

Version History

Introduced in R2021a