MATLAB: What is command for circularly writing a row matrix in matlab

circulantcirculant matrixcircular shift

example: let
a=[1 2 3 4 5]
i want output like
b=[ 1 2 3 4 5;
5 1 2 3 4;
4 5 1 2 3;
3 4 5 1 2;
2 3 4 5 1]
please help me

Best Answer

toeplitz() ?