This is actually a bug in octave (which I have just reported).
Muhali wrote: > > In the help of the the filtfilt function there is this sequence: > > [b, a]=butter(3, 0.1); % 10 Hz low-pass filter > t = 0:0.01:1.0; % 1 second sample > x=sin(2*pi*t*2.3)+0.25*randn(size(t)); % 2.3 Hz sinusoid+noise > y = filtfilt(b,a,x); z = filter(b,a,x); % apply filter > > The last line leads to the following error: > > error: filter: first dimension of SI must be of length max (length (a), > length (b)) - 1 > error: called from: > error: > /usr/local/octave-3.5/share/octave/packages/signal-1.0.11/filtfilt.m at > line 85, column 3 > > The error is not in octave-3.4. > > M. > > -- View this message in context: http://old.nabble.com/filtfilt-bug-with-octave-3.5.0%2B-tp32048320p32048444.html Sent from the octave-dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
