Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 12 years ago

Shashank gravatar image

Is it possible to join matrices in to a bigger matrix?

I have two symbolic 2×2 matrices A and B. I want to join them into a 4×4 matrix of the form (ABBA).

The problem is that when I give

C=matrix(SR,4,4)
C=matrix([[A,B],[B,A]])

I get a three dimensional object, not a four by four matrix. The actual matrices I am working with are bigger than this, so I don't want to do it by hand. Is there a way of doing this without a bunch of for loops?