-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Søren Hauberg wrote:
> tor, 01 10 2009 kl. 00:27 +0200, skrev Couvreur, Christophe:
>> No problem. I'm happy to have my "old" Octave toolbox included.
>
> Sorry 'bout the late reply. I think it is fine to include the code in
> question in the 'signal' package. Would anybody care to suggest a patch?
> (or send the files in question to this list, so I don't have to figure
> out which files are relevant)
>
> Søren
Hello,
Thanks for your contribution Christophe! Attached is a patch that uses
the bilinear function as defined in octave-signal.
Best,
Paul
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkrc4dUACgkQkuC958YALL0AaQCfftfCiWnt90yNFH8LbQHSoYib
+3sAn0OnJcgB3eAZr3HjhCC30uhMBHQW
=ANeU
-----END PGP SIGNATURE-----
diff -ruNad a/octave/adsgn.m b/octave/adsgn.m
--- a/octave/adsgn.m 1997-08-26 20:01:59.000000000 +0200
+++ b/octave/adsgn.m 2009-10-19 21:50:05.000000000 +0200
@@ -29,5 +29,5 @@
DENs = conv(conv(DENs,[1 2*pi*f3]),[1 2*pi*f2]);
% Use the bilinear transformation to get the digital filter.
-[B,A] = bilinear(NUMs,DENs,Fs);
+[B,A] = bilinear(NUMs,DENs,1./Fs);
diff -ruNad a/octave/cdsgn.m b/octave/cdsgn.m
--- a/octave/cdsgn.m 1997-08-26 20:01:59.000000000 +0200
+++ b/octave/cdsgn.m 2009-10-19 21:50:05.000000000 +0200
@@ -26,5 +26,5 @@
DENs = conv([1 +4*pi*f4 (2*pi*f4)^2],[1 +4*pi*f1 (2*pi*f1)^2]);
% Use the bilinear transformation to get the digital filter.
-[B,A] = bilinear(NUMs,DENs,Fs);
+[B,A] = bilinear(NUMs,DENs,1./Fs);
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev