Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3239 > unrolled thread

Re: pairing values from a list

Started by"McHale, Paul" <Paul.McHale@excelitas.com>
First post2011-06-22 07:55 +0000
Last post2011-06-22 07:55 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: pairing values from a list "McHale, Paul" <Paul.McHale@excelitas.com> - 2011-06-22 07:55 +0000

#3239 — Re: pairing values from a list

From"McHale, Paul" <Paul.McHale@excelitas.com>
Date2011-06-22 07:55 +0000
SubjectRe: pairing values from a list
Message-ID<its75n$658$1@smc.vnet.net>
Partition[ y, 2]

[This was the first of 10 or so posts with exactly the same answer, so I 
 am posting this one only. Others who posted were Bob Hanlon, Sseziwa Mukasa,
 James Womack, Adriano Pascoletti, Vivek Joshi, DrMajorBob, DC, 
 Sjoerd C. de Vries, and Harvey P. Dale -- moderator]

On Jun 21, 2011, at 7:54 AM, "Priyan Fernando" <priyan.fernando@gmail.com> 
wrote:

>
> y={0.245885, 0.334158, 0.115671, 0.0335952, 0.211846, 0.263921}
>
> can someone pls tell me how you would go about pairing this list? so that:
>
> y={{0.245885, 0.334158},{ 0.115671, 0.0335952},{ 0.211846, 0.263921}}
>
> thanks!
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web