function R = rotdeg( v )
%rotdeg Returns a 2x2 rotation matrix (wrt. degrees)
%   This function returns the 2x2 rotation matrix corresponding to a
%   counterclockwise rotation of v degrees.
rad = v*2*pi/360;
R=[cos(rad) -sin(rad);sin(rad) cos(rad)];
end

