[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56765] movstd argument-surface incompatible w
From: |
Markus Ebner |
Subject: |
[Octave-bug-tracker] [bug #56765] movstd argument-surface incompatible with matlab |
Date: |
Fri, 16 Aug 2019 17:55:36 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/bugs/?56765>
Summary: movstd argument-surface incompatible with matlab
Project: GNU Octave
Submitted by: seijikun
Submitted on: Fri 16 Aug 2019 09:55:34 PM UTC
Category: Octave Function
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: 5.1.0
Operating System: GNU/Linux
_______________________________________________________
Details:
movstd's function-argument surface is incompatible with that of matlab.
Matlab does have an argument called weight, while octave does not.
https://uk.mathworks.com/help/matlab/ref/movstd.html?s_tid=doc_srchtitle#bu5le86-1-w
This leads to incompatibilities like the following:
result = movstd(inputData, windowWidth, 0, 2);
This works in Matlab. The 0 specifies the mentioned weight argument:
"Normalize by k-1, where k is the window length. If k=1, the weight is k."
(from Matlab documentation)
The 2 specifies the dimension along which to do the calculation.
When the same code is run with octave, it tries to interpret the 0 as
dimension parameter, because octave does not seem to support the weight
argument.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56765>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56765] movstd argument-surface incompatible with matlab,
Markus Ebner <=