Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Silly question on Matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111552] Re: Silly question on Matrices
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 4 Aug 2010 08:18:26 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Use parentheses to exclude MatrixForm from the definition of A

(A = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}) // MatrixForm

A[[1, 1]]

1

A[[1]][[1]]

1


Bob Hanlon

---- "Eduardo M. A. M.Mendes" <emammendes at gmail.com> wrote: 

=============
Hello there

I am new to Mathematica.  In one of my attempts to understand how it works,
I tried the following example

A={{1,2,3},{4,5,6},{7,8,9}} //MatrixForm

The result seems to be a matrix 3x3 but when I try A[[1][1]], the whole
first line shows up instead of just one element.  If I don't use MatrixForm,
it works fine.  How can I see a matrix in nice format without wrecking
everything?

Many thanks

Ed



  • Prev by Date: Re: Simple Q
  • Next by Date: Re: Deleting entries with zero in a table
  • Previous by thread: Re: Silly question on Matrices
  • Next by thread: Re: Silly question on Matrices