[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42334] datevec() output should have the same
From: |
sergey plotnikov |
Subject: |
[Octave-bug-tracker] [bug #42334] datevec() output should have the same size as its input in case of datenum |
Date: |
Sun, 11 May 2014 19:10:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?42334>
Summary: datevec() output should have the same size as its
input in case of datenum
Project: GNU Octave
Submitted by: nul0m
Submitted on: Sun 11 May 2014 07:10:55 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
When input of datevec() function is datenum and nargout is greater than one
all the output vectors should have the same size as input date. Below are the
results comparing Matlab and Octave.
>> [~,~,d] = datevec([1 2; 3 4]) % Octave
d =
1
3
2
4
-----------------------------------------
>> [~,~,d] = datevec([1 2; 3 4]) % Matlab
d =
1 2
3 4
I hope the following patch would be a decent solution.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 11 May 2014 07:10:55 PM GMT Name: datevec_size.patch Size: 812B
By: nul0m
<http://savannah.gnu.org/bugs/download.php?file_id=31358>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42334>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42334] datevec() output should have the same size as its input in case of datenum,
sergey plotnikov <=