MathGroup Archive 2012

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

Search the Archive

Partition Help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126524] Partition Help
  • From: sierrahotel71 at gmail.com
  • Date: Thu, 17 May 2012 04:08:28 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I'm getting an extra set of braces when trying to partition a matrix and don't understand how to correctly write the function or remove the extra braces.

data = (*Imported 6 column table*)
d1 = Partition[data, {1, 3}]
which results in {{{{-45000000, -10, 0}}, {{-419, 0, 1344}}},.....
I need it to be
{{{-45000000, -10, 0}, {-419, 0, 1344}},.......

Any help appreciated



  • Prev by Date: Re: Crash in FindShortestPath (bug)
  • Next by Date: Re: Total least squares with Mathematica?
  • Previous by thread: Re: Crash in FindShortestPath (bug)
  • Next by thread: Re: Partition Help