Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Can you make a circulant matrix of matrices
Replies: 2   Last Post: Jul 2, 2012 8:15 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jeff

Posts: 113
Registered: 11/22/09
Can you make a circulant matrix of matrices
Posted: Oct 27, 2011 9:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.