Column Circulant Matrix

16 views (last 30 days)
S. David
S. David on 8 Mar 2012
Hello,
How to create the following coulumn circulant matrix in matlab:
X=
[
x_0 x_{p-1} .... x_{P-L}
x_1 x_0 .... x_{P-L+1}
.
.
.
x_{p-1} x_{p-2} ... x_{P-L-1}
]
where p>L and both are positive integers.
Thanks

Answers (1)

Honglei Chen
Honglei Chen on 8 Mar 2012
gallery('circul',[1 2 3])'
You can then take the first L columns
  4 Comments
S. David
S. David on 15 Mar 2012
Very simple
x=[1 2 3 4 5];
P=gallery('circul',x)';
G=P(:,1:3);

Sign in to comment.

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by