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

 
 

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

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Tue 20 May 2014 05:52:04 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: juanpiOpen/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project 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>
Project Member
Tue 20 May 2014 05:52:04 PM UTC, original submission:

The following code fails in Octave rev 79f69742971a

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

Juan Pablo Carbajal <juanpi>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 23 May 2014 08:26:05 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Fri 23 May 2014 03:34:34 PM UTCrik5Item GroupIncorrect Result=>Regression
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1