rotz_.m

来自「可以转动的风扇:rotx_.m,roty_.m,rotz_.m为旋转函数」· M 代码 · 共 9 行

M
9
字号
function [xd,yd,zd]=rotz_(x,y,z,phi)
cosf=cos(phi*pi/180);sinf=sin(phi*pi/180); 
xd =  cosf *x - sinf *y;
yd = sinf *x + cosf *y;
zd =z;
% rotz_.m
% rotz_(x,y,z,th) rotates a vector [x,y,z] 
% th degrees counter-clockwise about
% the z-axis.  See Appendix B; List B.1

⌨️ 快捷键说明

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