Syntax
EXL=RL2exl(RL)
Input Parameter
RL : | | Rotation List of Euler Angles |
Output Parameter
Copyright 2016-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This algorithm is designed to convert a list of Euler angles into a list of x-axis vectors using rotation matrices. Below is a detailed explanation of the algorithm and its parameters.
Input Parameters
- RL: A matrix where each row represents a set of Euler angles. The number of rows (nv) corresponds to the number of sets of Euler angles provided.
Output Results
- EXL: A matrix where each row is the x-axis vector derived from the corresponding Euler angles in the input list.
Algorithm Steps
- Determine the number of sets of Euler angles (nv) by checking the number of rows in the input matrix RL.
- Initialize the output matrix EXL with zeros, having the same number of rows as RL and three columns.
- Iterate over each set of Euler angles in RL:
- Convert the current set of Euler angles to a rotation matrix using the function
eul2rotm
.
- Extract the first column of the rotation matrix, which represents the x-axis vector, and store it in the corresponding row of EXL.
- If no output argument is specified (nargout == 0), visualize the vectors:
- Create a new figure with a 3D view using
SGfigure
and set the view angle to (30,30).
- For each vector in EXL, plot it using
lplot
with a green line and markers.
- If the current index is greater than 1, plot a connecting line to the previous vector using
VLplot
with a blue dashed line.
Algorithm explaination created using ChatGPT on 2025-08-18 23:03. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21