| Simulink® Control Design™ | ![]() |
in_struct = getinputstruct(op_point)
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.
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.
getstatestruct, getxu, operpoint
![]() | get | getlinio | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |