set - Set operating point information for Stateflow chart, MATLAB System block, or S-function - MATLAB (original) (raw)
Main Content
Set operating point information for Stateflow chart, MATLAB System block, or S-function
Syntax
Description
set([modelOP](#mw%5F24f16ee0-5266-4b16-9d97-9f1523d4845d),[blockPath](#mw%5F738a4770-4a65-4ce6-aec1-c96de70ced30),[op](#mw%5F9d99c0e4-4d36-4b00-8144-cd5e7a849fe4))
sets the operating point op
for the model element at the specified pathblockPath
. Use the set
function to specify operating point information for:
- Stateflow® charts
- MATLAB System blocks
- S-functions with custom operating point implementation
To modify the operating point information for a built-in block, use theloggedStates
property for the Simulink.op.ModelOperatingPoint object.
Examples
Specify the operating point for the Stateflow chart 'mymodel/chart'
as the contents of the variablenewChartOperPoint
.
newOperPoint = set(myOperPoint,'mymodel/chart',newChartOperPoint)
Input Arguments
Path to element whose operating point you want to modify, specified as a string or a character vector.
You cannot access or modify operating point information for Stateflow charts, MATLAB System blocks, or S-functions inside model references that execute in accelerator mode.
Version History
Introduced in R2019a
The Simulink.SimState.ModelSimState
object, which was introduced in R2009a, is renamed and replaced with the Simulink.op.ModelOperatingPoint
object. You can still use simulation snapshots from a previous release that you captured and saved as ModelSimState
objects. When you load the object into the workspace or a model, the object is replaced with a ModelOperatingPoint
object that contains the same data.
The ModelOperatingPoint
object has the same properties as theModelSimState
object. The setBlockSimState
andgetBlockSimState
functions continue to work but are not recommended. Instead, use the get
and set
functions for the ModelOperatingPoint
object.