simscape.op.create
Create operating point by extracting model or logged simulation data
Syntax
Description
creates an operating point by extracting the variable targets from the simulation
data log, op = simscape.op.create(simlog,time)simlog, at the simulation data time,
time. If the times in simlog contain
an exact match for time time, then the function extracts these
values. If there is no exact match, but time is between the
minimum and maximum times of simlog, then the function uses
linear interpolation to determine the target values. If time is
less than the minimum time, then the function extracts the first value for each
variable in simlog. If time is greater
than the maximum time, then the function extracts the last value in
simlog.
Note
If you extract an operating point from data logged using the Simulation Data Inspector, the data does not include private data. If you create an operating point from a model or from simulation data logged to memory or disc, the output includes private data.
,
where op = simscape.op.create(opSource,simPhase,cachingOption)cachingOption is "true", creates an
operating point by extracting the cached values of variable targets from models that
have been previously initialized or simulated. The default for
cachingOption is "false", which disables
caching. Use this syntax to avoid repeatedly initializing 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 R2017bSee Also
simscape.op.OperatingPoint | relativePath | set | hasPrivateData | simscape.op.Target