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

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

[Octave-bug-tracker] [bug #65008] ind2sub with indices lower than 0


From: anonymous
Subject: [Octave-bug-tracker] [bug #65008] ind2sub with indices lower than 0
Date: Mon, 11 Dec 2023 14:52:10 -0500 (EST)

Follow-up Comment #3, bug#65008 (group octave):

I had never notived that behavior before and it is not explictly documented
but, somehow, why not:


>> [x,y] = ind2sub([2,2],-4:8)

x =

     0     1     0     1     0     1     2     1     2     1     2     1    
2


y =

    -1    -1     0     0     1     1     1     2     2     3     3     4    
4




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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