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

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

[Octave-bug-tracker] [bug #62184] ind2sub behavior different in matlab a


From: anonymous
Subject: [Octave-bug-tracker] [bug #62184] ind2sub behavior different in matlab and octave
Date: Mon, 14 Mar 2022 18:39:37 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?62184>

                 Summary: ind2sub behavior different in matlab and octave
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 14 Mar 2022 10:39:36 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: ajohansson
        Originator Email: 
             Open/Closed: Open
                 Release: 6.4.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

ind2sub behaves differently in matlab and octave. 

Matlab R2021b allows this:


>> ind2sub(1, [1 2])
ans =
     1     2


octave 6.4 gives an error:


octave:1> ind2sub(1, [1 2])
error: ind2sub: index out of range


This issue is discussed at
https://octave.discourse.group/t/ind2sub-behavior-different-in-matlab-and-octave/2373




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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