how to create block circulant matrix?

38 次查看(过去 30 天)
i need to create mn*mn block circulant matrix ie m blocks of n*n matrices. please help me

采纳的回答

Akira Agata
Akira Agata 2020-4-14
How about the following?
% For simple example
n = 3;
m = 2;
% Create n-by-n circulant matrix
B_block = gallery('circul',1:n)';
% Create nm-by-nm block circulant matrix
B_all = repmat(B_block,m);
  2 个评论
sai prudhvi
sai prudhvi 2020-4-14
i accept but if matrix elements is complex numbers then how to create the matrix.
Akira Agata
Akira Agata 2020-4-15
I believe the same approach should work, like:
% For simple example
n = 3;
m = 2;
% Create n-by-n complex circulant matrix
Re = gallery('circul',1:n)';
Im = gallery('circul',1:n)';
B_block = Re + 1i*Im;
% Create nm-by-nm block circulant matrix
B_all = repmat(B_block,m);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by