hasPath(op,opPath)
returns true (1) if the operating point data tree contains a node
corresponding to the specified relative path, opPath. Returns
false (0) if a matching node was not found.
Find Whether Operating Point Contains Data for a Block
When you determine relative path for a block, the operating
point does not need to contain a node corresponding to that block. Use the
hasPath function to determine whether the operating
point contains data at the specified location.
Open the Permanent Magnet DC Motor example model and create an
OperatingPoint object named op using
the Start values from the model:
Operating point in the workspace, specified as an
OperatingPoint object.
opPath — Relative path to element slash-delimited character vector or string scalar
Relative path in the operating point data tree, specified as a
slash-delimited character vector or string scalar. Use the
relativePath function to determine the path to an
element. The element can be a subsystem, block, or variable target.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.