[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44987] hist3 should pad output when called wi
From: |
ederag |
Subject: |
[Octave-bug-tracker] [bug #44987] hist3 should pad output when called with centers larger than data |
Date: |
Fri, 01 May 2015 21:17:24 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0 |
URL:
<http://savannah.gnu.org/bugs/?44987>
Summary: hist3 should pad output when called with centers
larger than data
Project: GNU Octave
Submitted by: ederag
Submitted on: Fri 01 May 2015 09:17:23 PM GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0-rc4
Operating System: GNU/Linux
_______________________________________________________
Details:
With statistics-1.2.4 package, when hist3 is called with centers higher than
any of the given data, the N output is not padded with 0 as it should.
For instance:
D = [1 1; 3 1; 3 3; 3 1]
D =
1 1
3 1
3 3
3 1
hist3(D, {0:4, 0:4})
error: surface: rows (Z) must be the same as length (Y) and columns (Z) must
be the same as length (X)
The solution is to add a size argument to accumarray. Patch attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 01 May 2015 09:17:23 PM GMT Name: hist3.m.patch Size: 644B By:
ederag
<http://savannah.gnu.org/bugs/download.php?file_id=33863>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44987>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44987] hist3 should pad output when called with centers larger than data,
ederag <=