Results 1 to 2 of 2

Thread: [SOLVED] adding braces above a Matrix

  1. #1

    [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}\\

    I hope someone knows a solution to this problem.

    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Opalg's Avatar
    Aug 2007
    Leeds, UK
    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}


    $\displaystyle \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: Jan 16th 2012, 07:20 PM
  2. matrix addition question on adding the unknown terms
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: Mar 20th 2009, 08:42 PM
  3. [SOLVED] Adding fractions
    Posted in the Math Topics Forum
    Replies: 0
    Last Post: Mar 10th 2009, 03:57 AM
  4. [SOLVED] Adding two Coloumns in Excel 2007
    Posted in the Math Software Forum
    Replies: 1
    Last Post: Feb 15th 2008, 11:59 PM
  5. adding a matrix
    Posted in the Pre-Calculus Forum
    Replies: 2
    Last Post: Jul 20th 2006, 12:37 AM

/mathhelpforum @mathhelpforum