Discussion:
decimate() not working in 2.9.8?
(too old to reply)
Randy Yates
2007-01-13 21:01:32 UTC
Permalink
The "decimate()" function does not appear to be working correctly
in version 2.9.8. For example:

octave:6> x=ones(1000,1);
octave:7> y=decimate(x,2);
error: operator *: nonconformant arguments (op1 is 1x0, op2 is 1x9)
error: evaluating binary operator `*' near line 123, column 18
error: evaluating argument list element number 1
error: evaluating assignment expression near line 123, column 7
error: evaluating if command near line 122, column 3
error: called from `cheby1' in file `/usr/share/octave/site/m/octave-forge/signal/cheby1.m'
error: evaluating if command near line 61, column 3
error: called from `decimate' in file `/usr/share/octave/site/m/octave-forge/signal/decimate.m'
error: evaluating assignment expression near line 7, column 2
octave:7> version
ans = 2.9.8

Most everything else works OK so I don't think this is a setup or
configuration issue.
--
% Randy Yates % "So now it's getting late,
%% Fuquay-Varina, NC % and those who hesitate
%%% 919-577-9882 % got no one..."
%%%% <***@ieee.org> % 'Waterfall', *Face The Music*, ELO
http://home.earthlink.net/~yatescr
david bateman
2007-02-03 01:13:27 UTC
Permalink
Post by Randy Yates
The "decimate()" function does not appear to be working correctly
octave:6> x=ones(1000,1);
octave:7> y=decimate(x,2);
error: operator *: nonconformant arguments (op1 is 1x0, op2 is 1x9)
error: evaluating binary operator `*' near line 123, column 18
error: evaluating argument list element number 1
error: evaluating assignment expression near line 123, column 7
error: evaluating if command near line 122, column 3
error: called from `cheby1' in file `/usr/share/octave/site/m/octave-forge/signal/cheby1.m'
error: evaluating if command near line 61, column 3
error: called from `decimate' in file `/usr/share/octave/site/m/octave-forge/signal/decimate.m'
error: evaluating assignment expression near line 7, column 2
octave:7> version
ans = 2.9.8
Most everything else works OK so I don't think this is a setup or
configuration issue.
--
% Randy Yates % "So now it's getting late,
%% Fuquay-Varina, NC % and those who hesitate
%%% 919-577-9882 % got no one..."
Version I have installed seems to work.. Which version of octave forge
are you using? The latest version from the CVS is at

http://octave.cvs.sourceforge.net/*checkout*/octave/octave-forge/main/signal/inst/decimate.m?content-type=text%2Fplain&revision=HEAD

if you what the very latest version

D.

Continue reading on narkive:
Loading...