bugGNU Octave - Bugs: bug #42394, hist fails when data has two...

 
 

bug #42394: hist fails when data has two columns and normalization is requested

Submitter:  Juan Pablo Carbajal <juanpi>
Submitted:  Tue 20 May 2014 05:52:04 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  juanpi Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 23 May 2014 08:26:05 PM UTC, comment #3: 

I fixed this on the stable branch (http://hg.savannah.gnu.org/hgweb/octave/rev/9040ad7feb35).  It will be a part of the 3.8.2 bug fix release due very soon.

Rik <rik5>
Group administrator
Fri 23 May 2014 03:34:34 PM UTC, comment #2: 

Confirmed.  This is a regression between 3.6.4 and 3.8.0.  It should be a simple m-file fix to use repmat to expand the normalization constant to match the input number of columns.  I added it to the list of Short Projects on the wiki (http://wiki.octave.org/Short_projects#Bugs).

Rik <rik5>
Group administrator
Tue 20 May 2014 05:55:31 PM UTC, comment #1: 

To make clear that the problem is simple the code works if
a normalization is given for each column.

hist(rand(10,2),0:5, [1 1])

Juan Pablo Carbajal <juanpi>
Group Member
Tue 20 May 2014 05:52:04 PM UTC, original submission:  

The following code fails in Octave rev 79f69742971a


> hist(rand(10,2),0:5, 1)
error: hist: operator /: nonconformant arguments (op1 is 1x1, op2 is 1x2)
error: called from:
error:   /usr/local/share/octave/3.8.1/m/plot/draw/hist.m at line 160, column 10


It was verified (IRC) that the code runs ok in Matlab.

Juan Pablo Carbajal <juanpi>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by juanpi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-23 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-05-23 rik5 Item GroupIncorrect Result Regression
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code