Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1994

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: *Matrix witihn matrix*

  • To: mathgroup at
  • Subject: Re: *Matrix witihn matrix*
  • From: rubin at (Paul A. Rubin)
  • Date: Tue, 28 Jun 94 11:33:15 EDT

>I have a matrix containing sub-matrices which I wish to combine.
>I have implemented this as:
>So that:
>{{a11, a12, a13, b11, b12, b13}, {a21, a22, a23, b21, b22, b23},
>  {a31, a32, a33, b31, b32, b33},
>  {c11, c12, c13, d11, d12, d13},
>  {c21, c22, c23, d21, d22, d23}, {c31, c32, c33, d31, d32, d33}}
>Does anyone know of a  simplier implementation?
Transpose[ Join[ Transpose[ Join[ a, c ] ], Transpose[ Join[ b, d ] ] ] ]

(It may not be "simpler" but it's a one-liner.)


* Paul A. Rubin                                  Phone: (517) 336-3509   *
* Department of Management                       Fax:   (517) 336-1111   *
* Eli Broad Graduate School of Management        Net:   RUBIN at MSU.EDU    *
* Michigan State University                                              *
* East Lansing, MI  48824-1122  (USA)                                    *
Mathematicians are like Frenchmen:  whenever you say something to them,
they translate it into their own language, and at once it is something
entirely different.                                    J. W. v. GOETHE

  • Prev by Date: Re: *Matrix witihn matrix*
  • Next by Date: Re: Question about Cases command.
  • Previous by thread: Re: *Matrix witihn matrix*
  • Next by thread: Re: *Matrix witihn matrix*