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: Sergei Steshenko
Subject: Re: Can you force Octave to print?
Date: Fri, 14 Jun 2013 18:50:09 -0700 (PDT)


--- On Fri, 6/14/13, Jeffrey <address@hidden> wrote:

> From: Jeffrey <address@hidden>
> Subject: Can you force Octave to print?
> To: address@hidden
> Date: Friday, June 14, 2013, 5:18 PM
> 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
> 


I typically use

fprintf(stderr, ...);

Regards,
  Sergei.


reply via email to

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