Quaternion Blocks End of trail navigation bar

Table of Contents > QUARC > Blocks > Blocks - By Category > Block Categories > Math Operations

Vector Blocks

The vector blocks include standard operations on vectors, such as the cross product and norm, as well as a rotation transformation for vectors. Translation is simply the sum of two vectors (using the

Sum

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

qc_open_matlab_help('sum');
block), and scaling is the element-wise product of two vectors (using the
Product

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

qc_open_matlab_help('product');
block) so no additional blocks are provided for translation and scaling. Simulink already provides a
Dot Product

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

doc('simulink/dot product')
block as well.

Cross Product

Computes the cross product of two 3-vectors.

Norm

Computes the 2-norm of an arbitrary length vector or quaternion.

Normalize

Scales an arbitrary length vector or quaternion to a unit vector or unit quaternion, according to the 2-norm.

Norm Squared

Computes the square of the 2-norm of an arbitrary length vector or quaternion.

Vector from Skew Symmetric Matrix

Extracts a 3-vector from a skew-symmetric matrix.

Vector Rotation

Applies a fixed or variable rotation to a 3-element vector.

Vector to Skew Symmetric Matrix

Converts a 3-vector to a skew-symmetric matrix.

 

navigation bar