[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49019] some function fail when DIM>=3 and siz
From: |
Joakim Andén |
Subject: |
[Octave-bug-tracker] [bug #49019] some function fail when DIM>=3 and size(X, DIM)==1 |
Date: |
Thu, 3 Nov 2016 22:44:47 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 |
Follow-up Comment #2, bug #49019 (project octave):
Looking at the MATLAB behavior for these functions
>> A
A =
3.578396939725760 -1.349886940156521
2.769437029884877 3.034923466331855
>> fft(A, [], 3)
ans =
3.578396939725760 -1.349886940156521
2.769437029884877 3.034923466331855
>> mean(A, 3)
ans =
3.578396939725760 -1.349886940156521
2.769437029884877 3.034923466331855
>> diff(A, 1, 3)
ans =
Empty array: 2-by-2-by-0
so identity for "fft" and "mean", while empty matrix for "diff". However,
Octave gives errors for each of those calls. Similar discrepancies are there
for "mode", "median", and others. For the sake of compatibility, it would be
good to copy this behavior. I would be willing to make the necessary changes
if there is interest in changing this.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49019>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49019] some function fail when DIM>=3 and size(X, DIM)==1,
Joakim Andén <=