mimics gauss function shiftr
[matout]=shiftr(matin,shifts,val)
* matin = input (mxn) matrix
* shifts = (mx1) vectors of shifting values
* val = value to fill the holes
* matout = (mxn) transformed matrix
A = matrix([1:15],3,5);B=shiftr(A,[2 3 -2],0) // returns: // B = //! 0. 0. 1. 4. 7. ! //! 0. 0. 0. 2. 5. ! //! 9. 12. 15. 0. 0. ! | ![]() | ![]() |