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

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

[Octave-bug-tracker] [bug #55622] for loop does not run over a matrix wi


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #55622] for loop does not run over a matrix with colums but no row
Date: Tue, 30 Jan 2024 14:40:52 -0500 (EST)

Update of bug#55622 (group octave):

        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #23:

updating that this behavior still persists unchanged in both programs:

Matlab 2023b:

>> for i = (3:2)', disp ('hey'), end
hey
>> for i = zeros (0,3), disp ('hey'), end
hey
hey
hey
>> for i = zeros (0, 3, 0), i, end
>> for i = ones (0,3), disp ('hey'), end
hey
hey
hey
>>  for i = ones (3,0), disp ('hey'), end


Octave 9.0.1:

>> for i = (3:2)', disp ('hey'), end
>> for i = zeros (0,3), disp ('hey'), end
>> for i = zeros (0, 3, 0), i, end
>> for i = ones (0,3), disp ('hey'), end
>> for i = ones (3,0), disp ('hey'), end
>>


after all of the back and forth here and on previous reports, should this be
moved to a won't fix, or let it sit pending future changes?  worth refreshing
jwe's patch vs current codebase? 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55622>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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