Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Command similar to flatten??

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89299] Re: [mg89273] Command similar to flatten??
  • From: DrMajorBob <drmajorbob at att.net>
  • Date: Wed, 4 Jun 2008 05:37:49 -0400 (EDT)
  • References: <32098350.1212524982040.JavaMail.root@m08>
  • Reply-to: drmajorbob at longhorns.com

m = Array[a, {4, 10, 1100, 5}];

Flatten[m, 1] // Dimensions

{40, 1100, 5}

Bobby

On Tue, 03 Jun 2008 02:59:33 -0500, 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
>
>



-- 

DrMajorBob at longhorns.com


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