 
 
 
 
 
 
Re: TableForm and MatrixForm
- To: mathgroup at smc.vnet.net
- Subject: [mg53622] Re: [mg53616] TableForm and MatrixForm
- From: yehuda ben-shimol <benshimo at bgumail.bgu.ac.il>
- Date: Fri, 21 Jan 2005 06:35:26 -0500 (EST)
- References: <200501200848.DAA04154@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The postfix notation such as //TableForm uses the default values for the 
options of TableForm
Use
    TableForm[Flatten[data,1],TableAlignments->Center]
for example
a=Table[Random[Integer,{1,1000}],{10},{10}]; (*here no need of Flatten[] *)
TableForm[a,TableAlignments->Center]
yehuda
Blimbaum, Jerry AA R22 wrote:
>A recent question about outputting the following table as a 3 col matrix
>
>Table[{Sin[x],Cos[y],Sin[x]*Cos[y]},{y,0,2},{x,0,3}];
>
>gave 2 responses.....
>
>Flatten[data,1]//MatrixForm
>
>
>Flatten[data,1]//TableForm
>
>The output of these 2 is quite dissimilar....MatrixForm puts a
>parentheses around the table and centers the expressions on each
>line....whereas TableForm doesn't output parentheses nor does it center
>the expressions on each line.....Is this intentional or an
>oversight?.....I dont like the parentheses but I dont like the
>expressions not centered on the column either....
>
>
>Jerry blimbaum
>
>
>  
>
- References:
- TableForm and MatrixForm
- From: "Blimbaum, Jerry AA R22" <jerry.blimbaum@navy.mil>
 
 
- TableForm and MatrixForm

