|
| From: | anonymous |
| Subject: | [Octave-bug-tracker] [bug #47387] fracshift function ignores interpolator parameter |
| Date: | Fri, 11 Mar 2016 12:18:43 +0000 |
| User-agent: | Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?47387>
Summary: fracshift function ignores interpolator parameter
Project: GNU Octave
Submitted by: None
Submitted on: Fri 11 Mar 2016 12:18:41 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Tim Styles
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
I'm using the fracshift function in signal-1.2.2/fracshift.m
The help indicates that an optional third parameter can be given to specify
the interpolator, but using this option has no effect.
Looking at the code in frachshift.m, line 46 is checking for a fourth
parameter instead of a third parameter. Making the following change in
fracshift.m causes the third parameter to be used and it works as I would
expect:
46c46
< if (nargin < 4)
---
> if (nargin < 3)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47387>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |