Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



expanding matrix while copying elements
Posted:
Mar 19, 2013 11:40 AM


Howdy. I know I can do this with a couple of loops, but that just feels wrong...
I have a MxN matrix that I want to turn into a 12Mx12N matrix, filling in the intermediate elements. Here's a brief example  Suppose the initial matrix is 2x3 and I want to end up with 4x6
This 1 2 3 should end up as this 1 1 2 2 3 3 4 5 6 1 1 2 2 3 3 4 4 5 5 6 6 4 4 5 5 6 6
TIA, Bruce



