Main Content

set

Set operating point information for Stateflow chart, MATLAB System block, or S-function

Description

set(modelOP,blockPath,op) sets the operating point op for the model element at the specified path blockPath. 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 the loggedStates property for the Simulink.op.ModelOperatingPoint object.

example

Examples

collapse all

Specify the operating point for the Stateflow chart 'mymodel/chart' as the contents of the variable newChartOperPoint.

newOperPoint = set(myOperPoint,'mymodel/chart',newChartOperPoint)

Input Arguments

collapse all

Model operating point, specified as a Simulink.op.ModelOperatingPoint object.

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.

Operating point information to set, specified as a Stateflow.op.BlockOperatingPoint (Stateflow) object, an S-function operating point, or a MATLAB System block operating point.

Tips

Version History

Introduced in R2019a

expand all