Skip to Main Content Skip to Search
Product Documentation

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 f14 model:

op_f14=operpoint('f14');

Extract an input structure from the operating point object:

inputs_f14=getinputstruct(op_f14)

This extraction returns

inputs_f14 = 

       time: 0
    signals: [1x1 struct]

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

inputs_f14.signals.values

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

See Also

getstatestruct | getxu | operpoint

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS