help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disp() to a file?


From: Joao Cardoso
Subject: Re: disp() to a file?
Date: Sat, 29 Apr 2000 16:38:48 +0100

Paul Kienzle wrote:
> 
> How do I print to a file from an m-file without knowing the type of the
> thing I'm printing?  disp(x) works fine to the terminal.  I seem to want
> disp(x,fid).
> 
> Paul Kienzle
> address@hidden
> 
> PS, how about redirecting stdout to an already open fid, doing disp, then
>     reverting back to stdout?

in the 2.1.xx series you can do

a=rand(3);
stdout << a;
  0.78833  0.16799  0.38636
  0.91252  0.46584  0.58086
  0.65075  0.93477  0.49515

Joao

> 
> -----------------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
> How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
> Subscription information:  http://www.che.wisc.edu/octave/archive.html
> -----------------------------------------------------------------------



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]