simscape.op.create
Create operating point by extracting data from model or from logged simulation data
Syntax
Description
creates an op
= simscape.op.create(simlog
,t
)OperatingPoint
object op
by
extracting variable targets from logged simulation data at time
t
. If the set of times recorded in the simulation data log
simlog
contains an exact match for time
t
, then the function extracts these variable target values
into the operating point data. If there is no exact match, but
t
is between the minimum and maximum times of
simlog
, then the function uses linear interpolation to
determine the target values. If t
is less than the minimum
time, then the function extracts the first value for each variable in
simlog
. Similarly, if t
is greater
than the maximum time, then the function extracts the last value in
simlog
.
When you log simulation data in the Simulation Data Inspector, the simulation log does not contain private Simscape™ language data. Therefore, if you extract an operating point from data logged using the Simulation Data Inspector, private data is not included. For all other methods of creating an operating point, whether from a model or from simulation data logged to memory or disk, private data is included by default.
creates an op
= simscape.op.create(block
,simPhase
, true)OperatingPoint
object op
by
extracting cached values of variable targets from a model that has been previously
initialized or simulated. This method lets you save time by avoiding repeated
initialization of the model if the data that you want to extract has not changed.
The function returns an error if the model has not been updated, initialized, or
simulated earlier in the session.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b