help-octave
[Top][All Lists]
Advanced

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

Re: Can you force Octave to print?


From: Francesco Potortì
Subject: Re: Can you force Octave to print?
Date: Tue, 18 Jun 2013 10:59:57 +0200

> 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.

Maybe you are using printf?  fprintf takes a stream identifier as its
first argument.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.621.3058
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Skype:  wnlabisti
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

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