Main Content

removeTargetVariables

从KinematicsSo选择目标变量lver object

Description

removeTargetVariables(ks,ids)drops from theKinematicsSolverobjectksthe target variables named inids. Target variables serve to guide joints and bodies into place for analysis. Use this function to remove just one or a few target variables if they become obsolete.

The output is an updated table with the target variables—those that remain—in rows. Each row gives the ID of a variable, the type and block path of the joint to which it belongs if a joint variable, the base and follower frames from which it spawns if a frame variable, and the unit for its numerical value. The variables rank in the order added.

Most variables can be assigned individually. A few must be assigned in groups—axis components alongside rotation angle in spherical primitives; bend angle alongside azimuth angle in constant-velocity primitives. (A bend angle can be assigned individually but the azimuth angle cannot.)

Input Arguments

collapse all

Kinematics solver object, specified as aKinematicsSolverobject that is the representation of the Simscape Multibody model used for kinematic analysis.

Example:ks = simscape.multibody.KinematicsSolver('sm_double_pendulum')

Identifiers of the kinematic variables, specified as either a cell array of characters or string vector. The cell array of character and string vector can be 1-by-NorN-by-1, whereNis a positive integer. Use thejointPositionVariablesorjointVelocityVariablesobject function to show the IDs for joint variables. Use theframeVariablesobject function to show the IDs for frame variables.

Example:"j1.Rz.q", ["j1.Rz.q", "j2.Rz.q"], {'j1.Rz.q'}, or {'j1.Rz.q'; 'j2.Rz.q'};

Version History

Introduced in R2019a