From: James Coglan Date: 2009-04-13T20:24:43+09:00 Subject: Re: single to multi dimension array conversion --001636c59716c04be904676df5f0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 2009/4/13 Ashikali Ashikali > Ashikali Ashikali wrote: > > Can any one tell me converting single to multi dimension array > > conversion > > > > For example , > > a = [ 1,2,3,4,5,6,7,8,9,10 ] > > a.( 2,3 ) > > > > Output, > > > > > > > > here , > > 2 means dimension No > > 3 means elements in each dimension > > > In above example output should be , > a = [ [1,2,3],[4,5,6],[7,8,9] , [ 10 ] ] That has more than three elements along the outermost direction. It represents the matrix: 1 2 3 4 5 6 7 8 9 10 So you can't fit the data into a 3x3 space. You might need to specify the problem a bit more carefully. --001636c59716c04be904676df5f0--