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: [mg88608] Re: tablename[[x]]= xth row, how to get xth column
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 9 May 2008 07:17:19 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <g00v0k$gl7$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

f[[All, 2]]

?? 2th column

Regards
   Jens

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
> 


  • Prev by Date: Display commands in a package
  • Next by Date: Re: tablename[[x]]= xth row, how to get xth column
  • 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