JMAT3 3x3 rotation matrix through specified angle. J=JMAT3(PHI,N) creates a rotation matrix about axis N in three dimensions, e.g. JMAT3(PHI,3) returns J=[COS(PHI) -SIN(PHI) 0; SIN(PHI) COS(PHI) 0; 0 0 1] such that J*X rotates the column-vector X by PHI radians counterclockwise in the XY plane. If LENGTH(PHI)>1, then J will have dimension 3 x 3 x SIZE(PHI). N may either be a scalar or an array of the same length as PHI. See also VECTMULT, JMAT2. __________________________________________________________________ This is part of JLAB --- type 'help jlab' for more information (C) 2007--2010 J.M. Lilly --- type 'help jlab_license' for details