MathGroup Archive 2008

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

Search the Archive

Re: Command similar to flatten??


Hello Erin,
You want to Flatten at level 1:

garb = RandomInteger[{0, 1}, {4, 10, 1100, 5}];
Dimensions[garb]

trash = Flatten[garb, 1];
Dimensions[trash]

On Tue, Jun 3, 2008 at 3:59 AM, Erin Noel <enoel2 at gmail.com> wrote:
> Hi all,
>
> I am pretty new to Mathematica coding so bear with me...
>
> I have a list of lists named "A" whose dimensions are {4,10,1100,5} and I
> want to basically "combine" those first two levels so that the dimensions
> become {40,1100,5} but I have no idea how to do that...Any suggestions?
> Thanks a lot in advance.
>
> Erin
>
>



-- 
W. Craig Carter


  • Prev by Date: How to introduce a Functional with the results with Solve command?
  • Next by Date: Re: Command similar to flatten??
  • Previous by thread: Command similar to flatten??
  • Next by thread: Re: Command similar to flatten??