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: Rik
Subject: [Octave-bug-tracker] [bug #55622] for loop does not run over a matrix with colums but no row
Date: Sun, 29 Nov 2020 21:12:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36

Follow-up Comment #19, bug #55622 (project octave):

"I don't understand why we debate over an empty matrix. Clearly, the column
vector is not empty at all"

If you don't understand then re-read the discussion thread.  The issues are
subtle and changing Octave's core looping behavior should not be done
casually.

Clearly, the column vector *is* empty because both Matlab and Octave say so.


loop_var = ones (0, 3);
isempty (loop_var)
ans = 1




    _______________________________________________________

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]