Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1994

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

Search the Archive

Re:matrix printing

  • To: mathgroup at
  • Subject: Re:matrix printing
  • From: "Yuichi Pop Kimura (Col.of Indust.Eng.,Nihon univ.)" <kimura at>
  • Date: Fri, 21 Jan 1994 10:13:05 +0900

Dear Tom Fister,
    Please try following sources.

WriteFile[l_,outfile_:\"tmp\"] writes contents in l
to outfile with plain format.
Contents in outfile is removed before writing.

WriteFile[l_,outfile_String:"tmp"] := Module[
    outstrm,    (* output stream *)
    outstrm = OpenWrite[ outfile,
        PageWidth -> Infinity,
        FormatType -> OutputForm
    ] ;
    Write[ outstrm, TableForm[l, TableSpacing -> {0,2}] ] ;
    Close[ outstrm ];

The sample is as follow,


After this, you can find the file of "tmp" on the current directory.

Yuichi Kimura, Ph.D: Dep.of Industrial Eng. & Management, Col.of Industrial
Technology, Nihon univ., 1-2-1, Izumi, Narashino, Chiba, 275, Japan
TEL:0474(74)2637	FAX:0474(74)2619	CALL SIGN : JN1LXJ

  • Prev by Date: reducing inequality Pconstraints
  • Next by Date: Re: subscribe
  • Previous by thread: matrix printing
  • Next by thread: Thanks