【Matlab常用函数】矩阵循环移位circshift 函数_simonYUMing_百度空间

CIRCSHIFT     Shift array circularly.


    B = CIRCSHIFT(A,SHIFTSIZE) circularly shifts the values in the array A
    by SHIFTSIZE elements. SHIFTSIZE is a vector of integer scalars (整数标量组成的矢量)where
    the N-th element specifies the shift amount for the N-th dimension of
    array A. If an element in SHIFTSIZE is positive, the values of A are
    shifted down (or to the right). If it is negative, the values of A
    are shifted up (or to the left).

    Examples:
       A = [ 1 2 3;

               4 5 6;

                7 8 9];
      

      B = circshift(A,1) % circularly shifts first dimension values down by 1.

       B =     7     8     9
               1     2     3
               4     5     6


       B = circshift(A,[1 -1]) % circularly shifts first dimension values down by 1 and second dimension left by 1.
       B =   8     9     7
               2     3     1
               5     6     4



郑重声明:资讯 【【Matlab常用函数】矩阵循环移位circshift 函数_simonYUMing_百度空间】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【在线投诉】,我们审核后将会尽快处理。
—— 相关资讯 ——