opPath = relativePath(op,block)
returns a path from the root node of the operating point data tree
op to the node associated with a given block or subsystem,
block. The root node is specified by the
Identifier property of the OperatingPoint
object.
Open the DC Motor subsystem, select the
Inductor block, and find the relative
path to this block in the operating point data hierarchy:
relPath = relativePath(op, gcb)
relPath =
'DC Motor/Rotor Inductance'
When you determine the relative path for
a block, the operating point does not need to contain a node
corresponding to that block. You can obtain operating point
data for a block elsewhere, and then use the
relativePath function to determine
the correct location for inserting this data in the
operating point for the current model.
Operating point in the workspace, specified as an
OperatingPoint object. The
Identifier property of the
OperatingPoint object must match the name of the
model.
Block or subsystem name or identifier, specified as a handle, full path to
a block or subsystem in the model, or a valid Simulink identifier (SID).
Path to the node corresponding to the specified block, returned as a
character vector, relative to the root node of the operating point data
tree. The root node is specified by the Identifier
property of the OperatingPoint object.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.