MathGroup Archive 2008

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

Search the Archive

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


On May 9, 2008, at 3:24 AM, 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 #,

sometablename[[All,x]]


  • Prev by Date: Problem in Evaluate/Manipulate
  • Next by Date: Re: Display commands in a package
  • Previous by thread: tablename[[x]]= xth row, how to get xth column
  • Next by thread: Re: tablename[[x]]= xth row, how to get xth column