Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: need to call data from a list as input but need it in vector form not list form

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50671] Re: need to call data from a list as input but need it in vector form not list form
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 15 Sep 2004 07:54:59 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <ci8msj$btd$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

what is with

list = {{0.161299}, {0.122965}, {0.055712}, {0.0448334}, {-0.00538706}}

First /@ list

and

Table[list[[i, 1]], {i, Length[list]}]

??

Regards
  Jens


"T." wrote:
> 
> Suppose I have just generated a list named "list" and the output is as
> follows.
> 
> {{0.161299}, {0.122965}, {0.055712}, {0.0448334}, {-0.00538706}}
> 
> I want to use this data in the form
> 
> {0.161299, 0.122965, 0.055712, 0.0448334, -0.00538706}
> 
> however i can't call it in with list[[i]] because I just get the
> {{},{},{},{}} form with those extra brackets.  I guess I have a list
> and I am trying to convert it to a vector form right?  Sorry if my
> definitions are confused.
> 
> T.


  • Prev by Date: Re: need to call data from a list as input but need it in vector form not list form
  • Next by Date: Re: need to call data from a list as input but need it in vector form not list form
  • Previous by thread: Re: need to call data from a list as input but need it in vector form not list form
  • Next by thread: Re: need to call data from a list as input but need it in vector form not list form