function rotate

Rotates X by ANGLE (in degrees, counterclockwise)

Syntax
result = rotate(X, ANGLE [, XCENTER, YCENTER])

Arguments
X:   The matrix to be rotated
ANGLE:   Rotation angle in degrees. Rotation will we counterclockwise
XCENTER:   Optional, the center of the rotation in the first dimension (defaults to the center of X).
YCENTER:   Optional, the center of the rotation in the second dimension (defaults to the center of X).