フィルターのクリア

Column Circulant Matrix

5 ビュー (過去 30 日間)
S. David
S. David 2012 年 3 月 8 日
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

回答 (1 件)

Honglei Chen
Honglei Chen 2012 年 3 月 8 日
gallery('circul',[1 2 3])'
You can then take the first L columns
  4 件のコメント
S. David
S. David 2012 年 3 月 15 日
Ok, good. Now how can I control the number of column's circular shifts? I mean, I do not want the circulant matrix to be square. For example, say I want something like:
X=[
1 5 4
2 1 5
3 2 1
4 3 2
5 4 3
]
Thanks.
S. David
S. David 2012 年 3 月 15 日
Very simple
x=[1 2 3 4 5];
P=gallery('circul',x)';
G=P(:,1:3);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by