next up previous contents
Next: shiftUp Up: リファレンスマニュアル Previous: shiftLeft

  
shiftRight

【目的】
shiftRight - 全ての列を右方向へシフトする
【形式】
Y = shiftRight(X)              Y = shiftRight(X,k)
   (Matrix|Array|Index) Y;        (Matrix|Array|Index) Y;
   (Matrix|Array|Index) X;        (Matrix|Array|Index) X;
                                  Integer k;
【詳細】
shiftRight(X)は,行列型(行列|配列|指数)Xの全ての列を右方向へ 1列シフトした行列を作る。一番左の列は,ゼロになる。 shiftRight(X,k)は,右方向へ k 行シフトする。
【例題】
>> Y = shiftRight([[1 2 3][4 5 6]])
=== [Y] : (  2,  3) ===
           (  1)           (  2)           (  3)     
(  1)  0.00000000E+00  1.00000000E+00  2.00000000E+00
(  2)  0.00000000E+00  4.00000000E+00  5.00000000E+00
【参照】
rotateRight(2.186), shiftUp(2.210), shiftLeft(2.208), shiftDown(2.207)


Masanobu KOGA 平成11年10月2日