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

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

[Octave-bug-tracker] [bug #49944] histc is not compatible with Matlab wh


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #49944] histc is not compatible with Matlab when edges set is empty
Date: Wed, 28 Dec 2016 12:33:23 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?49944>

                 Summary: histc is not compatible with Matlab when edges set
is empty
                 Project: GNU Octave
            Submitted by: avinoam
            Submitted on: Wed 28 Dec 2016 12:33:21 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Avinoam
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: Any

    _______________________________________________________

Details:


In Matlab:


x = rand(10, 20, 30) ;
histc(1, [])
histc(x, [])
histc(x, [], 1)
histc(x, [], 2)
histc(x, [], 3)

ans =
  1×0 empty double row vector
ans =
  0×20×30 empty double array
ans =
  0×20×30 empty double array
ans =
  10×0×30 empty double array
ans =
  10×20×0 empty double array


In Octave I get errors:


>> histc(1, [])

error: histc: EDGES must not be empty
error: called from
    histc at line 57 column 5
>> histc(x, [])

error: histc: EDGES must not be empty
error: called from
    histc at line 57 column 5
>> histc(x, [], 1)

error: histc: EDGES must not be empty
error: called from
    histc at line 57 column 5
>> histc(x, [], 2)

error: histc: EDGES must not be empty
error: called from
    histc at line 57 column 5
>> histc(x, [], 3)

error: histc: EDGES must not be empty
error: called from
    histc at line 57 column 5






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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