MathGroup Archive 1998

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

Search the Archive

Re: Output to a file


Michaela:

use 'MatrixForm' instead of 'PaddedForm', e.g. for

A = {{0., 1., 2., 3.}, {1., 2., 3., 4.}, {2., 3., 4., 5.},  {3., 4., 5.,
6.}}

and (for convenience and test-purposes, open for default)

stream = OutputStream["stdout", 1]

write

Write[
  stream,
  MatrixForm[A]
]

Use options for getting other formats; try this, for example:

Write[
  stream,
  MatrixForm[A,TableDirections->{Row,Row},TableSpacing->{1,1}]
 ]

mfG
Clemens





  • Prev by Date: Q: Combining NDSolve with FindRoot
  • Next by Date: Mandelbrot
  • Previous by thread: Re: Output to a file
  • Next by thread: Need emacs math.el lisp file compatible with 3.0