加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
T.m 572 Bytes
一键复制 编辑 原始数据 按行查看 历史
narasimhareddy04 提交于 2020-04-16 12:44 . Add files via upload
function TW=T(theta1,theta2,theta3)
%Returns a 3x3 rotation matrix.
%theta1=rotation about x-axis in radians
%theta2=rotation about y-axis in radians
%theta3=rotation about z-axis in radians
TW =[cos(theta2)*cos(theta3),-cos(theta2)*sin(theta3),-sin(theta2);
cos(theta1)*sin(theta3)-cos(theta3)*sin(theta1)*sin(theta2), cos(theta1)*cos(theta3)+sin(theta1)*sin(theta2)*sin(theta3), -cos(theta2)*sin(theta1);
sin(theta1)*sin(theta3)+cos(theta1)*cos(theta3)*sin(theta2),cos(theta3)*sin(theta1)-cos(theta1)*sin(theta2)*sin(theta3),cos(theta1)*cos(theta2)];
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化