www.gusucode.com > phased 案例源码 matlab代码程序 > phased/RotationMatrixFor45degYRotationExample.m
%% Rotation Matrix for 45° Rotation % Construct the matrix for a rotation of a vector around the y-axis by % 45°. Then let the matrix operate on a vector. R = roty(45) v = [1;-2;4]; y = R*v %% % Under a rotation around the y-axis, the _y_-component of a vector is % invariant.