filtfilt error solved?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

filtfilt error solved?

seektime
Hi,


I'd like to use the filtfilt function in the signal proc. TB. Unfortunately, running the example from help section throws the following error:

octave:129> [b, a]=butter(3, 0.1);
octave:130> t = 0:0.01:1.0;
octave:131> x=sin(2*pi*t*2.3)+0.25*randn(size(t));
octave:132> y = filtfilt(b,a,x);
error: filter: first dimension of SI must be of length max (length (a),
length (b)) - 1
error: called from:
error: C:\Octave\3.4.3_gcc-4.5.2\Octave3.4.3_gcc4.5.2\share\octave\packages\si
gnal-1.1.1\filtfilt.m at line 85, column 3

I read in a previous post that the problem lies with 'filter.m', but that seemed to refer to ver. 3.4.2. I'm running Octave 3.4.3 (mingw). Is there's a quick fix? Any ideas or solutions are highly welcome.

Thanks,
Michael
Reply | Threaded
Open this post in threaded view
|

Re: filtfilt error solved?

Muhali
seektime wrote
octave:129> [b, a]=butter(3, 0.1);
octave:130> t = 0:0.01:1.0;
octave:131> x=sin(2*pi*t*2.3)+0.25*randn(size(t));
octave:132> y = filtfilt(b,a,x);
error: filter: first dimension of SI must be of length max (length (a),
length (b)) - 1
error: called from:
error: C:\Octave\3.4.3_gcc-4.5.2\Octave3.4.3_gcc4.5.2\share\octave\packages\si
gnal-1.1.1\filtfilt.m at line 85, column 3
It works (for me) with octave-3.6 and signal-1.1.2

M.
Reply | Threaded
Open this post in threaded view
|

Re: filtfilt error solved?

seektime
Hi Muhali,

Thanks for your reply. I'm not sure how to install 3.6 on my Windows
machine? Have you compiled it yourself, or does an installer exists?

Thanks again,
Michael


On Fri, Feb 3, 2012 at 9:20 AM, Muhali [via Octave]
<[hidden email]> wrote:

> seektime wrote
> octave:129> [b, a]=butter(3, 0.1);
> octave:130> t = 0:0.01:1.0;
> octave:131> x=sin(2*pi*t*2.3)+0.25*randn(size(t));
> octave:132> y = filtfilt(b,a,x);
> error: filter: first dimension of SI must be of length max (length (a),
> length (b)) - 1
> error: called from:
> error:
> C:\Octave\3.4.3_gcc-4.5.2\Octave3.4.3_gcc4.5.2\share\octave\packages\si
> gnal-1.1.1\filtfilt.m at line 85, column 3
>
> It works (for me) with octave-3.6 and signal-1.1.2
>
> M.
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://octave.1599824.n4.nabble.com/filtfilt-error-solved-tp4355026p4355203.html
> To unsubscribe from filtfilt error solved?, click here.
> NAML
Reply | Threaded
Open this post in threaded view
|

Re: filtfilt error solved?

Alexander Hansen-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd start by updating the signal package to version 1.1.2, since that
is where the script that causing your error actually lives.  That
seems like an easier operation.

On 2/3/12 12:36 PM, seektime wrote:

> Hi Muhali,
>
> Thanks for your reply. I'm not sure how to install 3.6 on my
> Windows machine? Have you compiled it yourself, or does an
> installer exists?
>
> Thanks again, Michael
>
>
> On Fri, Feb 3, 2012 at 9:20 AM, Muhali [via Octave] <[hidden
> email] </user/SendEmail.jtp?type=node&node=4355255&i=0>> wrote:
>
>> seektime wrote octave:129> [b, a]=butter(3, 0.1); octave:130> t
>> = 0:0.01:1.0; octave:131> x=sin(2*pi*t*2.3)+0.25*randn(size(t));
>>  octave:132> y = filtfilt(b,a,x); error: filter: first dimension
>> of SI must be of length max (length (a), length (b)) - 1 error:
>> called from: error:
>> C:\Octave\3.4.3_gcc-4.5.2\Octave3.4.3_gcc4.5.2\share\octave\packages\si
>>
>>
>>
gnal-1.1.1\filtfilt.m at line 85, column 3
>>
>> It works (for me) with octave-3.6 and signal-1.1.2
>>
>> M.
>>



- --
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8sI7EACgkQB8UpO3rKjQ8HTwCfZVHL+RxE/YH0Xlz0vpTR4NBo
pFsAoJagApNOuHl2IbUntYJr8FSurioJ
=9OAk
-----END PGP SIGNATURE-----
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: filtfilt error solved?

seektime
Did that but the error persists when running the example from the header.

On Fri, Feb 3, 2012 at 10:13 AM, Alexander Hansen
<[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'd start by updating the signal package to version 1.1.2, since that
> is where the script that causing your error actually lives.  That
> seems like an easier operation.
>
> On 2/3/12 12:36 PM, seektime wrote:
>> Hi Muhali,
>>
>> Thanks for your reply. I'm not sure how to install 3.6 on my
>> Windows machine? Have you compiled it yourself, or does an
>> installer exists?
>>
>> Thanks again, Michael
>>
>>
>> On Fri, Feb 3, 2012 at 9:20 AM, Muhali [via Octave] <[hidden
>> email] </user/SendEmail.jtp?type=node&node=4355255&i=0>> wrote:
>>
>>> seektime wrote octave:129> [b, a]=butter(3, 0.1); octave:130> t
>>> = 0:0.01:1.0; octave:131> x=sin(2*pi*t*2.3)+0.25*randn(size(t));
>>>  octave:132> y = filtfilt(b,a,x); error: filter: first dimension
>>> of SI must be of length max (length (a), length (b)) - 1 error:
>>> called from: error:
>>> C:\Octave\3.4.3_gcc-4.5.2\Octave3.4.3_gcc4.5.2\share\octave\packages\si
>>>
>>>
>>>
> gnal-1.1.1\filtfilt.m at line 85, column 3
>>>
>>> It works (for me) with octave-3.6 and signal-1.1.2
>>>
>>> M.
>>>
>
>
>
> - --
> Alexander Hansen, Ph.D.
> Fink User Liaison
> http://finkakh.wordpress.com/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk8sI7EACgkQB8UpO3rKjQ8HTwCfZVHL+RxE/YH0Xlz0vpTR4NBo
> pFsAoJagApNOuHl2IbUntYJr8FSurioJ
> =9OAk
> -----END PGP SIGNATURE-----
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave