Main Content

aircraftProperties

Create properties to define and manage aircraft

Since R2021b

    Description

    example

    properties = aircraftProperties( ) returns an Aero.Aircraft.Properties object with default values for all properties.

    properties = aircraftProperties(name) returns an Aero.Aircraft.Properties object with the specified name name.

    properties = aircraftProperties(name,description) returns an Aero.Aircraft.Properties object with the specified description description.

    properties = aircraftProperties(name,description,type) returns an Aero.Aircraft.Properties object with the specified type type.

    prooperties = aircraftProperties(name,description,type,version) returns an Aero.Aircraft.Properties object with the specified version version.

    Examples

    collapse all

    Create an aircraft properties object.

    props = aircraftProperties()
    props = 
    
      Properties with properties:
    
               Name: ""
        Description: ""
               Type: ""
            Version: ""

    Create an aircraft properties object and specify the name.

    props = aircraftProperties("MyPlane")
    props = 
    
      Properties with properties:
    
               Name: "MyPlane"
        Description: ""
               Type: ""
            Version: ""

    Create an aircraft properties object and specify the name, description, type, and version.

    props = aircraftProperties("MyPlane","This is a plane","plane","1.0")
    props = 
    
      Properties with properties:
    
               Name: "MyPlane"
        Description: "This is a plane"
               Type: "plane"
            Version: "1.0"

    Input Arguments

    collapse all

    Object name, specified as a scalar string or character vector.

    Data Types: char | string

    Object description, specified as a scalar string or character vector.

    Data Types: char | string

    Object type, specified as a scalar string or character vector.

    Data Types: char | string

    Object version, specified as a scalar string or character vector.

    Data Types: char | string

    Output Arguments

    collapse all

    Aero.Aircraft.Properties object, returned as an Aero.Aircraft.Properties object.

    Version History

    Introduced in R2021b