Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form a big matrix from small matrices

Status
Not open for further replies.

NGUYENHUYHIEU

Civil/Environmental
Jul 29, 2009
1
Hi all,

Anyone knows how to form a matrix as below:

bigC = [
C0 C1 C2 ...... C(n-1)
C1 C0 C1 ...... C(n-2)
C2 C1 C0 ...... C(n-3)
......................................
C(n-1) C(n-2) C(n-3) ...... C0 ] ???

where Ci's are square matrices.

The toeplitz command works well if Ci's are numbers, for example:
c = [1 2 3 4 5];
r = [1 2 3 4 5];
toeplitz(c,r)

ans =

1 2 3 4 5
2 1 2 3 4
3 2 1 2 3
4 3 2 1 2
5 4 3 2 1

Any suggestions if Ci's are matrices?
Thanks
 
Replies continue below

Recommended for you

I'd just write a couple of for loops but there is probably a better way, 'cell' looks relevant.



Cheers

Greg Locock

SIG:please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor