This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getinputstruct

Input structure from operating point

Syntax

in_struct = getinputstruct(op_point)

Description

in_struct = getinputstruct(op_point) extracts a structure of input values, in_struct, from the operating point object, op_point. The structure, in_struct, uses the same format as Simulink® software which allows you to set initial values for inputs in the model within the Data Import/Export pane of the Configuration Parameters dialog box.

Examples

Create an operating point object for the scdplane model:

open_system('scdplane')
op_scdplane = operpoint('scdplane');

Extract an input structure from the operating point object:

inputs_scdplane = getinputstruct(op_scdplane)
inputs_scdplane = 

       time: 0
    signals: [1x1 struct]

To view the values of the inputs within this structure, use dot-notation to access the values field:

inputs_scdplane.signals.values

In this case, the value of the input is 0.

Introduced before R2006a