Results 1 to 1 of 1

Math Help - submatrices (Mathematica)

  1. #1
    Newbie
    Joined
    Oct 2010
    Posts
    10

    submatrices (Mathematica)

    Could anyone explain me how I may obtain in Mathematica v7 all possible submatrices of any square matrix? For example:

    matrix

    \left(\begin{array}{ccc} a&b&c \\ d&e&f \\ g&h&i \end{array}\right)

    divided as follows:

    \left(\begin{array}{c|cc} a&b&c \\ \hline d&e&f \\ g&h&i \end{array}\right)

    \left(\begin{array}{c} a\end{array}\right)

    \left(\begin{array}{cc} b&c \end{array}\right)

    \left(\begin{array}{c} d \\ g \end{array}\right)

    \left(\begin{array}{cc} e&f \\ h&i \end{array}\right)


    and

    \left(\begin{array}{cc|c} a&b&c \\ \hline d&e&f \\ g&h&i \end{array}\right)

    \left(\begin{array}{cc} a&b \end{array}\right)

    \left(\begin{array}{c} c\end{array}\right)

    \left(\begin{array}{cc} d&e \\ g&h \end{array}\right)

    \left(\begin{array}{c} f \\ i \end{array}\right)

    and so on, by using of different partitions of the same matrix.

    I assume, that I could use Span or Part but I don't know which way use it to obtain all submatrices for matrices of different sizes.
    Last edited by yosso; November 10th 2011 at 02:19 PM.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Help about Mathematica
    Posted in the Math Software Forum
    Replies: 2
    Last Post: June 1st 2010, 12:46 PM
  2. help me in Mathematica
    Posted in the Math Software Forum
    Replies: 2
    Last Post: May 18th 2010, 02:26 AM
  3. Mathematica
    Posted in the Math Software Forum
    Replies: 2
    Last Post: March 24th 2010, 08:13 AM
  4. Mathematica Help
    Posted in the Math Software Forum
    Replies: 1
    Last Post: March 5th 2010, 08:12 AM
  5. MLE and Mathematica
    Posted in the Math Software Forum
    Replies: 0
    Last Post: June 21st 2008, 02:27 AM

Search Tags


/mathhelpforum @mathhelpforum