Results 1 to 3 of 3

Math Help - part of code involved in matrices

  1. #1
    Senior Member
    Joined
    Jun 2009
    Posts
    251

    part of code involved in matrices

    what does in \begin{array}{ccccc} what does the cccccc do and how is the number of characters determined? for example, do I need 5 c's for a matrix that has 5 columns or something?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Feb 2010
    Posts
    20
    Quote Originally Posted by superdude View Post
    what does in \begin{array}{ccccc} what does the cccccc do and how is the number of characters determined? for example, do I need 5 c's for a matrix that has 5 columns or something?
    Yes, the number of letters in the second set of brackets indicates the number of columns. You can list either a "c", "r", or "l" to signify the justification of the numbers in the matrix. So, for example, in the command you listed, you have five columns with the numbers centered in each column.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Super Member
    Joined
    Mar 2010
    Posts
    980
    Thanks
    236
    You can have more c's than required:

    \left[\begin{array}{ccc}1&2\\3&4\\5&6\end{array}\right]

    which allows you to leave blank spaces:

    \left[\begin{array}{ccc}1&2&3\\&4\\5&6\end{array}\right]

    - Hollywood
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. linear code,parity check matrices
    Posted in the Discrete Math Forum
    Replies: 0
    Last Post: March 29th 2010, 06:41 PM
  2. Replies: 25
    Last Post: January 15th 2010, 03:53 AM
  3. matlab matrices code - urgent
    Posted in the Math Software Forum
    Replies: 0
    Last Post: November 22nd 2009, 09:00 AM
  4. Sum of a part arithmatic and part geometric sequence
    Posted in the Pre-Calculus Forum
    Replies: 4
    Last Post: October 25th 2009, 10:53 PM
  5. involved derivative
    Posted in the Calculus Forum
    Replies: 3
    Last Post: January 13th 2009, 01:57 AM

Search Tags


/mathhelpforum @mathhelpforum