MathGroup Archive 2008

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

Search the Archive

Re: tablename[[x]]= xth row, how to get xth column

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88628] Re: [mg88586] tablename[[x]]= xth row, how to get xth column
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sat, 10 May 2008 06:53:02 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200805090724.DAA16608@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

   f[[All, 2]]
{2, 4}

cimon wrote:
> hello
> 
> a very simple question, "sometablename[[X]]"  gives me the Xth row of
> table , like below.
> 
>  f = {{1, 2, 3, 4}, {1, 4, 6, 77}}
>  {{1, 2, 3, 4}, {1, 4, 6, 77}}
> f[[1]]
>  {1, 2, 3, 4}
> 
> 
> I am not able to find the syntax that can give me Xth column of a
> table.  i dont want to transpose it and use. and I tried #,
> 
> thank you
> 
> cimon
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Display commands in a package
  • Next by Date: issues with unit package
  • Previous by thread: Re: tablename[[x]]= xth row, how to get xth column
  • Next by thread: Re: tablename[[x]]= xth row, how to get xth column