|
"Matt Thomas" <matt.at@gmail.com> wrote in message <i1kvlh$2sv$1@fred.mathworks.com>...
> In response to the code posted above, I need the program to change the values of my x,y,z points, not the coordinate system.
===============
The two sound the same to me.
> Is there no command for rotating a set of x,y points defined in a 2 column matrix about the origin of the x,y coordinate system?
========
Create a rotation matrix, similar to what has been described to you (or see below).You can multiply the 2 column matrix with the rotation matrix.
function R=R2d(x)
%2D Rotation matrix counter-clockwise.
%
%R=R2d(deg)
%
%Input is in degrees.
%
%See also Rx,Ry,Rz,,R3d,M2d,M3d
R= [cosd(x),-sind(x); sind(x),cosd(x)];
|