Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Can you make a circulant matrix of matrices

Subject: Can you make a circulant matrix of matrices

From: Jeff

Date: 28 Oct, 2011 01:01:26

Message: 1 of 3

Suppose I have an (nxn) matrix A made like this (when n=4):

v1=[-4,1,0,1];
A1=gallery('circul',v1);

That gives me a 4x4 circulant matrix. Now, I want to make a circulant matrix of matrices. That is, how do I create a matrix that looks like this (augmented) matrix:

A=[A1 eye(4) zeros(4) eye(4);
 eye(4) A1 eye(4) zeros(4) ;
zeros(4) eye(4) A1 eye(4) ;
 eye(4) zeros(4) eye(4) A1];

Is there an easy way to do that in Matlab?

Subject: Can you make a circulant matrix of matrices

From: Bruno Luong

Date: 28 Oct, 2011 06:57:15

Message: 2 of 3

c={A1 eye(4) zeros(4) eye(4)} % your matrices
A = cell2mat(c(toeplitz(1:4)))

% Bruno

Subject: Can you make a circulant matrix of matrices

From: Julio

Date: 2 Jul, 2012 12:15:07

Message: 3 of 3

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <j8djoa$75h$1@newscl01ah.mathworks.com>...
> c={A1 eye(4) zeros(4) eye(4)} % your matrices
> A = cell2mat(c(toeplitz(1:4)))
>
> % Bruno
Thanks a lot

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us