MathGroup Archive 2006

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

Search the Archive

Re: Output Table Format Change


Narasimham wrote:
 > Is there a command   for  removal of  brackets  automatically from
 > output ?
 >
 > tbl = Table[ N[ {Sin[u+v],Cos[u-v]}],{u,0, Pi,Pi/6},{v,0, Pi,Pi/6}] ;
 >
 > ListPlot[tb,PlotJoined->True,AspectRatio->Automatic];
 >
 > tb is same as tbl from which extra curly brackets {  } are manually
 > removed. (tbl output  is deleted here).
 >
 > Thanks in advance.
 >
Hi,

Use the built-in function *Flatten* [1] with its second argument set to
1. For instance,

tbl = Table[N[{Sin[u + v], Cos[u - v]}],
     {u, 0, Pi, Pi/6}, {v, 0, Pi, Pi/6}];

ListPlot[Flatten[tbl, 1], PlotJoined -> True,
    AspectRatio -> Automatic];

Best regards,
Jean-Marc

[1] http://documents.wolfram.com/mathematica/functions/Flatten


  • Prev by Date: Re: Graphics Export
  • Next by Date: Re: x/x
  • Previous by thread: Re: Output Table Format Change
  • Next by thread: What does " 1.' " mean ?