Re: Scalars Instead of Lists with One Element

*To*: mathgroup at smc.vnet.net*Subject*: [mg83454] Re: [mg83418] Scalars Instead of Lists with One Element*From*: Gregory Lypny <gregory.lypny at videotron.ca>*Date*: Wed, 21 Nov 2007 02:42:55 -0500 (EST)*References*: <200711200846.DAA07103@smc.vnet.net> <FFDD2258-D07B-4A08-9A25-2203E647669B@jeol.com>

Yes, I'm trying to reproduce the {.} problem with some regularity. Be that as it may, it's not clear why, when I iterate over {i, 1,...,8} and {j ,1,...,8}, I get tables with dimensions {8, 8, 1} rather than {8, 8}. That's the cut-and-paste problem. Sigh. Gregory On 20-Nov-2007, at 8:53 AM, Sseziwa Mukasa wrote: > On Nov 20, 2007, at 3:46 AM, Gregory Lypny wrote: > >> Hello everyone, >> >> Say I have the list x={2, 7}. Is there a command I can use to get 2 >> rather than {2} when I ask for x[[1]], and 7 rather than {7} when I >> ask for x[[2]]? Doing so would solve my problem with my tables being >> too deep to be able to cut and paste directly into the table objects >> of other applications like word processors and spread sheets. > > x[[1]] is 2 and x[[2]] is 7. x[[{1}]] is {2} and x[[{2}]] is {7}. > > Regards, > > Ssezi

**References**:**Scalars Instead of Lists with One Element***From:*Gregory Lypny <gregory.lypny@videotron.ca>