comparison general/arrutils/shiftr.m @ 4:e44f49929e56

Adding reorganised general toolbox, now in several subdirectories.
author samer
date Sat, 12 Jan 2013 19:21:22 +0000
parents
children 03694e5c8365
comparison
equal deleted inserted replaced
3:3f77126f7b5f 4:e44f49929e56
1 function y=shiftr(x)
2 % shiftr - shift a column vector down one
3 % maintaining original length
4 % eg [ 1 2 3 4 ] --> [ 0 1 2 3 ]
5 y = [0; x(1:length(x)-1) ];