Re: How To Break Long List to m-by-n MatrixForm
- To: mathgroup at smc.vnet.net
- Subject: [mg119040] Re: How To Break Long List to m-by-n MatrixForm
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Fri, 20 May 2011 06:38:39 -0400 (EDT)
- References: <ir2vpv$h3v$1@smc.vnet.net>
- Reply-to: nma at 12000.org
On 5/19/2011 4:43 AM, Afolabicrystal wrote: > Hello Friends, > > I have a fundamental question. > > Given a long List of elements (say 60 elements). How do I break this > to an m-by-n MatrixForm (say 5-by-12). > > It's kinda basic and I already feel silly asking the question. Simple > things do elude big brains sometimes. Any idea? > > Thankx. > may be use Partition --------------------- a=Table[RandomInteger[10],{60}] (c=Partition[a,12])//MatrixForm ------------------------ --Nasser