help-octave
[Top][All Lists]
Advanced

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

Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds


From: inor0627
Subject: Re: pause(.01) gives a mean pause of 0.0102 and not 0.0100 seconds
Date: Fri, 18 Oct 2019 01:22:49 -0500 (CDT)

inor0627 wrote
> for ii=1:100
> t0=tic();
> do
>   t(ii)=toc(t0);
> until (t>0.01)
> end%for
> t_mean=mean(t)
> 
>>> t_mean =    10.0051e-003  ?

Of course it should be:
...
until (t(ii)>=0.01)
...




--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

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