r3.m

来自「小推力航天器转移轨道程序」· M 代码 · 共 18 行

M
18
字号
% Richard Rieber
% September 21, 2006
% function A = R3(x);
%
% This function creates a rotation matrix about the 3-axis (or the Z-axis)
%
% A = [cos(x)  sin(x)     0;
%      -sin(x) cos(x)     0;
%      0       0          1];
%
% Inputs:  x - rotation angle in radians
% Outputs: A - the rotation matrix about the Z-axis

function A = R3(x);

A = [cos(x)  sin(x)     0;
     -sin(x) cos(x)     0;
     0       0          1];

⌨️ 快捷键说明

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