Results 1 to 2 of 2

Math Help - [SOLVED] adding braces above a Matrix

  1. #1
    Gunslinger
    Guest

    [SOLVED] adding braces above a Matrix

    Hi everyone!

    I'm trying to add some braces above/below and left/right of a Matrix to describe how many Columns and Rows certain ranges of the matrix has.
    For example I have a 2 by 2 Block-matrix. I want a brace over the first and the one over the second column telling me how large each blockmatrix is.
    \overbrace doesn't seem to work for me because either the brace and it's description end up inside the matrix or the braces are over the brackets and the column to be braced.
    Here's what I've tried sofar:

    \[
    \left[ {\begin{array}{*{20}c}
    1 & 2 \\
    3 & 4 \\
    \end{array}} \right] + \overbrace {\left[ {\begin{array}{*{20}c}
    1 \\
    3 \\
    \end{array}} \right.}^N\quad \overbrace {\left. {\begin{array}{*{20}c}
    2 \\
    4 \\
    \end{array}} \right]}^k\begin{array}{*{20}c}
    {\left. {} \right\}N}\\
    {\left. {} \right\}k}\\
    \end{array}
    \]

    I hope someone knows a solution to this problem.

    Michael
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Plain TeX has a control sequence \bordermatrix to handle this sort of thing. Unfortunately it's a bit inflexible. It only allows parenthesised matrices, and it only allows labels above and to the left, not below or to the right of the matrix. The input

    \[
    \bordermatrix{&\overbrace{}^N&\overbrace{}^k\cr \llap{${\scriptstyle N}\{$}&A&B\cr \llap{${\scriptstyle k}\{$}&C&D\cr}
    \]

    yields

    \bordermatrix{&\overbrace{}^N&\overbrace{}^k\cr \llap{${\scriptstyle N}\{$}&A&B\cr \llap{${\scriptstyle k}\{$}&C&D\cr} .

    Note the use of \llap to justify the braces to the left of the matrix. Without this, the labels would be left justified, giving a ragged appearance.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 3
    Last Post: January 16th 2012, 08:20 PM
  2. matrix addition question on adding the unknown terms
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: March 20th 2009, 09:42 PM
  3. [SOLVED] Adding fractions
    Posted in the Math Topics Forum
    Replies: 0
    Last Post: March 10th 2009, 04:57 AM
  4. [SOLVED] Adding two Coloumns in Excel 2007
    Posted in the Math Software Forum
    Replies: 1
    Last Post: February 16th 2008, 12:59 AM
  5. adding a matrix
    Posted in the Pre-Calculus Forum
    Replies: 2
    Last Post: July 20th 2006, 01:37 AM

/mathhelpforum @mathhelpforum