summaryrefslogtreecommitdiff
path: root/sharedfiles/reverse.m
blob: 010529bcb59df1fa40583e9384da4606839fea6d (plain)
1
2
3
4
5
% Reverses the positions of the elements of a vector

function r=reverse(v);

r=v([length(v):-1:1]);