⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcmfromeulertest.m

📁 飞行器姿态角的欧拉角表示方法与余弦矩阵表示方法的matlab转换程序
💻 M
字号:
clc, close all,clear all,format compact

% % rotation angles in radians
roll=1.5;
pitch=1.2;
yaw=2.3;

% % Rotation sequence can be given either in r, p, y format or in X,Y,Z format
% % roll=r=X
% % pith=p=Y
% % yaw=y=Z

disp('Sequence of rotation: rpy'); 
DCM=dcmfromeuler(roll,pitch,yaw,'rpy') % order is roll-->pith-->yaw OR X-->Y-->Z

disp('Sequence of rotation: ryp');
DCM=dcmfromeuler(roll,pitch,yaw,'ryp')

disp('Sequence of rotation: pry'); 
DCM=dcmfromeuler(roll,pitch,yaw,'pry')

disp('Sequence of rotation: pyr');
DCM=dcmfromeuler(roll,pitch,yaw,'pyr')

disp('Sequence of rotation: yrp');
DCM=dcmfromeuler(roll,pitch,yaw,'yrp')

disp('Sequence of rotation: ypr');
DCM=dcmfromeuler(roll,pitch,yaw,'ypr')


% % -------------------------------------------------------------------------
% % This program or any other program(s) supplied with it does not provide any
% % warranty direct or implied. This program is free to use/share for
% % non-commercial purpose only, for any other usage contact with author.
% % Kindly reference author.
% % Thanking you.
% % @ Copyright M Khan
% % Email: mak2000sw@yahoo.com
% %        mak2000@GameBox.net 
% % http://www.geocities.com/mak2000sw

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -