[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62407] datenum() handles nD array inputs inco
From: |
Nir Krakauer |
Subject: |
[Octave-bug-tracker] [bug #62407] datenum() handles nD array inputs incorrectly |
Date: |
Tue, 3 May 2022 10:57:47 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62407>
Summary: datenum() handles nD array inputs incorrectly
Project: GNU Octave
Submitted by: nir_krakauer
Submitted on: Tue 03 May 2022 02:57:46 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
If one of the first 3 inputs to datenum is a 3+ dimensional array with 1
column, the output has the wrong size. For example,
size (datenum (2000, 1, ones(1, 1, 3)))
is [3 1 3].
The attached patch fixes this.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 03 May 2022 02:57:46 PM UTC Name: datenum.patch Size: 1KiB By:
nir_krakauer
<http://savannah.gnu.org/bugs/download.php?file_id=53171>
-------------------------------------------------------
Date: Tue 03 May 2022 02:57:46 PM UTC Name: datenum_fixed.m Size: 10KiB
By: nir_krakauer
<http://savannah.gnu.org/bugs/download.php?file_id=53172>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62407>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62407] datenum() handles nD array inputs incorrectly,
Nir Krakauer <=