MathGroup Archive 2010

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

Search the Archive

Re: Silly question on Matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111566] Re: Silly question on Matrices
  • From: "Eduardo M. A. M.Mendes" <emammendes at gmail.com>
  • Date: Thu, 5 Aug 2010 07:01:18 -0400 (EDT)

Many thanks to all for the replies.  

Regards

Ed


-----Original Message-----
From: Bob Hanlon [mailto:hanlonr at cox.net] 
Sent: Wednesday, August 04, 2010 9:18 AM
To: mathgroup at smc.vnet.net
Subject: [mg111566] [mg111552] Re: Silly question on Matrices


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: Silly question on Matrices
  • Next by Date: Re: Silly question on Matrices
  • Previous by thread: Re: Silly question on Matrices
  • Next by thread: Re: Silly question on Matrices