Table of Contents
Scale Transformation
This block multiplies a homogeneous transformation matrix by a scaling matrix. The block can be configured to have either a fixed or variable scale.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library/Math Operations/Homogeneous Transformations')Description
This block multiplies an input homogeneous transformation matrix by a scaling matrix. The block can be configured to have either a fixed or variable scaling by double clicking on the block and setting the appropriate parameters. The homogeneous translation matrix is as follows:
output = [x 0 0 0 0 y 0 0 0 0 z 0 0 0 0 1];
where x
, y
, and z
are the scale along the axes of the current frame. The
input homogeneous transformation matrix is post-multiplied by this matrix.
Input Ports
4x4
This input takes the previous output from a homogeneous transformation block. If there are no prior transformation blocks then this input must be driven by a Identity Transformation block.
vec
If the block is configured to drive the scale externally, then this port will be visible. The input should be a 3 element vector defining the scaling along the axes of the current frame.
Output Ports
4x4
Outputs a 4x4 tranformation matrix.
Parameters and Dialog Box
Source of scale vector
Selects between internal and external sources for the scaling vector. If internal is selected, set the vector in the Scale field. If external is selected, you can connect a 3 element vector to the input port.
Scale
Sets the scaling to the fixed value entered in this field if the Source of scale vector is set to use the internal input.
Targets
Target Name |
Compatible* |
Model Referencing |
Comments |
---|---|---|---|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
Last fully supported in QUARC 2018. |
|
Rapid Simulation (RSIM) Target |
Yes |
Yes |
|
S-Function Target |
No |
N/A |
Old technology. Use model referencing instead. |
Normal simulation |
Yes |
Yes |
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.