tilt
Syntax
Description
returns the tilt angles based on the specified T
= tilt(orientations
)orientations
. See Tilt Angle Definition for more details.
Examples
Obtain Tilt Angles
Define four sets of Euler angles and obtain their corresponding quaternions.
angles = [0 0 0; 0 0 10; 0 0 170; 0 0 190]; quats = quaternion(angles,"eulerd","ZYX","frame");
Obtain the tilt angles and convert their units to degrees.
tiltAngles = rad2deg(tilt(quats))
tiltAngles = 4×1
0
10.0000
170.0000
170.0000
Input Arguments
orientations
— Orientations
N-by-1 vector of quaternion
objects | 3-by-3-by-N array of rotation matrices
Orientations, specified as an N-by-1 vector of quaternion
objects or
as a 3-by-3-by-N array of rotation matrices. N is
the total number of orientations.
Output Arguments
T
— Tilt angles
N-element column vector of scalars in range [0, pi]
Tilt angles, in radians, returned as an N-element column vector of scalars in the range [0, pi]. N is the total number of orientations.
More About
Tilt Angle Definition
The tilt angle is defined as the angle between the positive-Z direction of the reference
frame and the positive-z direction of the body frame. The orientations
input defines the rotational coordinate transformation from the reference frame to the body
frame.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2023b
See Also
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)