MathGroup Archive 2012

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

Search the Archive

Partition Help


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