[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Can you force Octave to print?
From: |
Jeffrey |
Subject: |
Can you force Octave to print? |
Date: |
Fri, 14 Jun 2013 17:18:40 -0700 (PDT) |
Octave seems to be buffering its prints until it's done processing. Is
there a way to force it to print?
I am solving a differential equation using ode45 and it takes a very long
time to run (actually, it's very simple, but I'm running it for thousands
of iterations). To get a status on it, I have the following lines in the
function which is called over and over by ode45:
tRound = floor(1000*t)/1000;
if mod(tRound, 100) == 0
fprintf('Timestep = %f at %s\n', t, datestr(clock));
fprintf('%f,', t);
However, the output from the fprintf is not appearing until ode45 is
finished.
Is there a command, or trick, which I can use to force octave to print the
output when I say so?
Thanks,
J
--
View this message in context:
http://octave.1599824.n4.nabble.com/Can-you-force-Octave-to-print-tp4654273.html
Sent from the Octave - General mailing list archive at Nabble.com.