[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48585] hist output does not correspond to Mat
From: |
Sebastian |
Subject: |
[Octave-bug-tracker] [bug #48585] hist output does not correspond to Matlab |
Date: |
Mon, 25 Jul 2016 06:53:13 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7 |
Follow-up Comment #2, bug #48585 (project octave):
MATLAB seems to consider the current behavior not as a bug. It is consistent
since 2011a. Example:
[nn,xx] = hist ([1:8], [1 5 3 7]);
assert (xx, [1 5 3 7]);
assert (nn, [3 1 1 3]);
Around 2014b the "single" bug was fixed: "[nn, xx] = hist (y, single (3));"
now returns xx as double. uint8 does not work at all in Matlab.
I attach the MATLAB test script that I have used with all version since 2011.
(file #38017)
_______________________________________________________
Additional Item Attachment:
File name: hist_test.m Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48585>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/