MathGroup Archive 1998

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

Search the Archive

Re: lists



Hi Paul,

One idea is to use Transpose and Flatten. If

l1={{1},{2},{3}}
l2={{1a},{2a},{3a}}

then

Flatten[Transpose[{l1,l2}],1]

will do the trick

Carl Woll
Dept of Physics
U of Wash

On Fri, 16 Jan 1998 Paul.Hanson@colorado.edu wrote:

> Hola!
>   So, if you have a couple of lists:
>   {{1},{2},{3},{4}....{n}}
> and
>   {{1a},....{na}}
> and I want to combine them such that,
>   {{1},{1a},{2},{2a}....{n},{na}}
> 
> How do I get there?  Thanks in advance for the help.
> 
> Paul Hanson
> 
> -- 
> 				 * * 
>                                 *    *
>                            /\    */\*
>                           /  \   /  \ /\
> 
> 




  • Prev by Date: Re: Plotting vector-valued functions
  • Next by Date: Contour plot of irregularly spaced data
  • Prev by thread: Re: lists
  • Next by thread: Re: lists