set

Class: Simulink.op.ModelOperatingPoint
Package: Simulink.op

Set operating point of an individual Stateflow chart, MATLAB function, or S-function block

Syntax

set(modelOperatingPoint,'blockpath',blockOperatingPoint)

Description

set(modelOperatingPoint,'blockpath',blockOperatingPoint) sets the operating point to the block specified by a blockpath. The blockpath must refer to a Stateflow chart, a MATLAB function, or a S-function block. To modify states of other types of blocks, use the loggedStates of the Simulink.op.ModelOperatingPoint class.

Input Arguments

expand all

Operating point object for the model.

Path of the block for which to set the operating point values, specified as a character vector

Operating point to be set to the specified block, specified as an object.

Examples

expand all

This example shows how to set the operating point for a block.

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