rot90                 package:matlab                 R Documentation

_M_A_T_L_A_B _r_o_t_9_0 _f_u_n_c_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Rotates matrix counterclockwise 'k*90' degrees.

_U_s_a_g_e:

     rot90(A, k = 1)

_A_r_g_u_m_e_n_t_s:

       A: matrix to be rotated

       k: numeric scalar specifying the number of times to rotate
          (1..4)

_D_e_t_a_i_l_s:

     Rotating 4 times (360 degrees) returns the original matrix
     unchanged.

_V_a_l_u_e:

     Returns matrix corresponding to argument 'A' having been rotated
     argument 'k' number of times.

_A_u_t_h_o_r(_s):

     P. Roebuck, roebuck@mdanderson.org

_S_e_e _A_l_s_o:

     'fliplr', 'flipud'

_E_x_a_m_p_l_e_s:

     rot90(matrix(1:4, 2, 2))

