MathGroup Archive 2001

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

Search the Archive

Re: TableForm Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28931] Re: TableForm Question
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Sat, 19 May 2001 22:27:50 -0400 (EDT)
  • References: <9e2dfs$6bb@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Steve,
I get the same, here is a work-round


t={{a,a,a},{b,b}};

TableForm[PadRight[t,{Length[t],Max[Length/@t]},{""}],
  TableDirections->Row]

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

<qualsystems*nospam* at mindspring.com> wrote in message
news:9e2dfs$6bb at smc.vnet.net...
> Hello All,
>
> A search of Deja News turned up the very problem I need help on, but I
> couldn't find any response to it.
>
> The original posting is copied below.
>
> " Hi MathGroup !!
>
> I believe there is a Bug in the TableForm/MatrixForm when using the
> option TableDirections. In the Mathematica Book section 2.8.8. we have
> the example
> TableForm[ { {a, a, a}, {b, b} } ]
> which is essentially the same as
> TableForm[ {{a, a, a}, {b, b} }, TableDirections -> Column ]
> The result is
>
> a a a
> b b
>
> which is fine. But when I write
> TableForm[ {{a, a, a}, {b, b} }, TableDirections -> Row ]
>  I don't get the output I expected
>
> a b
> a b
> a
>
> Instead I get the same output as before with the following error
> massage Thread::"tdlen": "Objects of unequal length in
> OutputFormsDump`HoldList[OutputFormsDump`HoldList [a, a, a], <<1>>]
> cannot be combined." Any comments ?!?
>
> Greetings Drago Ganic"
>
> Thanks for any help.
>
> Steve
>
>




  • Prev by Date: Help tips.
  • Next by Date: Re: OOP in Mathematica
  • Previous by thread: Re: TableForm Question
  • Next by thread: flat box under RealTime3D