| Simulink® Control Design™ | ![]() |
get(ob)
get(ob,'PropertyName')
ob.PropertyName
As an alternative to the get function, view properties of linearization I/Os and operating points with the Simulink® Control Design™ GUI. For more information, see Inspecting Analysis I/Os and Specifying Operating Points in the Simulink Control Design getting started documentation.
get(ob) displays all properties and corresponding values of the object, ob, which can be a linearization I/O object, an operating point object, or an operating point specification object. Create ob using findop, getlinio, linio, operpoint, or operspec.
get(ob,'PropertyName') returns the value of the property, PropertyName, within the object, ob. The object, ob, can be a linearization I/O object, an operating point object, or an operating point specification object. Create ob using findop, getlinio, linio, operpoint, or operspec.
ob.PropertyName is an alternative notation for displaying the value of the property, PropertyName, of the object, ob. The object, ob, can be a linearization I/O object, an operating point object, or an operating point specification object. Create ob using findop, getlinio, linio, operpoint, or operspec.
Create an operating point object, op, for the Simulink® model, magball.
op=operpoint('magball');
Get a list of all object properties using the get function with the object name as the only input.
get(op)
This returns the properties of op and their current values.
Model: 'magball'
States: [4x1 opcond.StatePoint]
Inputs: []
Time: 0
To view the value of a particular property of op, supply the property name as an argument to get. For example, to view the name of the model associated with the operating point object, type:
V=get(op,'Model')
which returns
V = magball
Because op is a structure, you can also view any properties or fields using dot-notation, as in this example.
W=op.States
This notation returns a vector of objects containing information about the states in the operating point.
(1.) magball/Controller/Controller
x: 0
x: 0
(2.) magball/Magnetic Ball Plant/Current
x: 7
(3.) magball/Magnetic Ball Plant/dhdt
x: 0
(4.) magball/Magnetic Ball Plant/height
x: 0.05
Use get to view details of W. For example:
get(W(2),'x')
returns
ans = 7.0036
findop, getlinio, linio, operpoint, operspec, set
![]() | findop | getinputstruct | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |