octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #46859] Error in "for" cycle


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #46859] Error in "for" cycle
Date: Sat, 09 Jan 2016 15:43:37 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Follow-up Comment #2, bug #46859 (project octave):

Matlab 2015a says:


>> T=1001/250;
>> dt=1/250;
>> x(1)=10;
>> for i=2:T/dt
x(i)=x(i-1)+randn();
end
>> whos
  Name      Size              Bytes  Class     Attributes

  T         1x1                   8  double              
  dt        1x1                   8  double              
  i         1x1                   8  double              
  x         1x1000             8000  double              

>> 


So, it is a bug.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46859>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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