MathGroup Archive 2005

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

Search the Archive

Re: TableForm and MatrixForm


Bob....thank you...I finally realize that I'm getting way too complacent
with Mathematica...after I saw your answer I looked up TableForm in the
Help file....and it shows TableAlignments quite clearly...and, of
course, I could have looked it up before submitting the question...I'll
know better for next time....


Thanks again....Jerry blimbaum

-----Original Message-----
From: Bob Hanlon [mailto:hanlonr at cox.net] 
To: mathgroup at smc.vnet.net
Subject: [mg53639] Re: [mg53616] TableForm and MatrixForm


Flatten[data, 1] // TableForm[#, TableAlignments -> {Center}] &


Bob Hanlon

> 
> From: "Blimbaum, Jerry AA R22" <jerry.blimbaum at navy.mil>
To: mathgroup at smc.vnet.net
> Date: 2005/01/20 Thu AM 03:48:01 EST
> To: mathgroup at smc.vnet.net
> Subject: [mg53639] [mg53616] TableForm and MatrixForm
> 
> 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
> 
> 
> 


  • Prev by Date: Re: Newbie Programming question
  • Next by Date: Re: TableForm and MatrixForm
  • Previous by thread: Re: TableForm and MatrixForm
  • Next by thread: Re: TableForm and MatrixForm