[Top][All Lists]

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

Re: How to print from the Octave Shell?

From: Michael Grossbach
Subject: Re: How to print from the Octave Shell?
Date: Thu, 29 Jan 2009 16:54:22 +0100
User-agent: Thunderbird (Windows/20081209)

Carlo de Falco wrote:
On 29 Jan 2009, at 14:45, Adriana Bustillos wrote:


Sorry for my basic question but I am new in the octave world.
I would like to know how can I print from the shell?? I run my program and see my results in the black screen. How can I print those results?
Thank you for your help.

I assume from your mention of the "black screen" you are running Octave under windows, right? I do not use windows myself, but an approach that would work on any systes is the "diary" command :

 >> diary on  ## start recording session to the diary file
 >> ## do some calculations and print results to screen
 >> diary off ## stop recording
 >> edit diary

and you should see a text file in your favourite editor showing all your commands and their results that you can edit and/or print as any other text file.
for more info type "help diary" at the octave prompt.


octave-3.0.3.exe:5> edit diary
error: unable to edit a built-in or compiled function
error: in
D:\Anwenderprog\Octave\share\octave\3.0.3\m\miscellaneous\edit.m near
line 185, column 7:

error ("unable to edit a built-in or compiled function");

keyboard: stopped in
dit.m at line 185

Instead of editing diary from within Octave I'd open the diary file with
an editor as notepad.exe or - even better - Scite using the Windows
Explorer context menue "Open with..."-command.

HTH, Michael

reply via email to

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