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: [mg50672] Re: need to call data from a list as input but need it in vector form not list form
- From: Yves Klett <yk at despammed.com>
- Date: Wed, 15 Sep 2004 07:55:01 -0400 (EDT)
- Organization: Comp.Center (RUS), U of Stuttgart, FRG
- References: <ci8msj$btd$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi T., easy one, try Flatten[]: In[3]:= Flatten[{{0.161299},{0.122965},{0.055712},{0.0448334},{-0.00538706}}] Out[3]= {0.161299,0.122965,0.055712,0.0448334,-0.00538706} Yves T. schrieb: > 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. >