<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265281</link>
    <title>MATLAB Central Newsreader - Obtaining the frequency response from a digital filter</title>
    <description>Feed for thread: Obtaining the frequency response from a digital filter</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 08 Nov 2009 10:18:01 -0500</pubDate>
      <title>Obtaining the frequency response from a digital filter</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265281#692978</link>
      <author>Ana </author>
      <description>Hi there, &lt;br&gt;
&lt;br&gt;
I am converting from analog to digital filter, a butterworth using the bilinear transformation. I am obtaining the num and the den of the digital function, but when am plotting using freqz the response is not as desired. don t know if i am doing something wrong prior to freqz or that freqz is not the right command to plot for digital filters. &lt;br&gt;
&lt;br&gt;
disp(' --------------------------------------------');&lt;br&gt;
disp('| Design of a Digital 2nd order Butterworth Low-pass Filter |');&lt;br&gt;
disp(' --------------------------------------------');&lt;br&gt;
fs=input('Sampling frequency: ');% around 20e3;&lt;br&gt;
s = tf('s'); % The analog form&lt;br&gt;
num = 1;&lt;br&gt;
den = [1 1.414 1 ];&lt;br&gt;
&lt;br&gt;
%Converting to digital form &lt;br&gt;
[numd,dend] = bilinear(num,den,fs)&lt;br&gt;
&lt;br&gt;
zplane(dend,numd)&lt;br&gt;
pause;&lt;br&gt;
freqz(dend,numd,fs) % plotting the response.&lt;br&gt;
pause;&lt;br&gt;
&lt;br&gt;
Thankyou very much for any help . REally appreciate it.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Ana&lt;br&gt;
&lt;br&gt;
(ps. can i use this method to transform ANY other filter, like the  chebyshev, elliptic, thompson etc.... THANKS ALOT!!!)</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 11:07:12 -0500</pubDate>
      <title>Re: Obtaining the frequency response from a digital filter</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265281#692987</link>
      <author>Rune Allnor</author>
      <description>On 8 Nov, 11:18, &quot;Ana &quot; &amp;lt;filter_wo...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi there,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am converting from analog to digital filter, a butterworth using the bilinear transformation. I am obtaining the num and the den of the digital function, but when am plotting using freqz the response is not as desired. don t know if i am doing something wrong prior to freqz or that freqz is not the right command to plot for digital filters.&lt;br&gt;
...&lt;br&gt;
&lt;br&gt;
Designing discrete-time filters from analog prototypes&lt;br&gt;
via the BLT is a somewhat involved algorithm, that requires&lt;br&gt;
some 8-10 individual steps. Get any one of those steps wrong,&lt;br&gt;
and you will be lost. Your code above only hints at a couple&lt;br&gt;
of those steps, so there is no wonder why you don't get the&lt;br&gt;
required result.&lt;br&gt;
&lt;br&gt;
The algorithm for designing filters is beyond the scope of&lt;br&gt;
USENET, so pick up a book on digital signal processin (or take&lt;br&gt;
a class) to learn.&lt;br&gt;
&lt;br&gt;
&amp;gt; (ps. can i use this method to transform ANY other filter, like the &#160;chebyshev, elliptic, thompson etc.... THANKS ALOT!!!)&lt;br&gt;
&lt;br&gt;
The BLT is the core of a design method that can use several&lt;br&gt;
analog IIRs as prototype. I know it can be used for the&lt;br&gt;
Butterworth, Chebychev types I and II, elliptic filters;&lt;br&gt;
maybe it works with other types of analog filters as well.&lt;br&gt;
I don't know.&lt;br&gt;
&lt;br&gt;
But again: You need to know what you are doing - and get&lt;br&gt;
every single detail right! - to get the method to work.&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 12:19:01 -0500</pubDate>
      <title>Re: Obtaining the frequency response from a digital filter</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265281#692999</link>
      <author>Ana </author>
      <description>Would you suggest any particular book? Thanks alot.&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
Ana</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 13:56:49 -0500</pubDate>
      <title>Re: Obtaining the frequency response from a digital filter</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265281#693004</link>
      <author>Rune Allnor</author>
      <description>On 8 Nov, 13:19, &quot;Ana &quot; &amp;lt;filter_wo...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Would you suggest any particular book? Thanks alot.&lt;br&gt;
&lt;br&gt;
Filter design is fairly standard, but this one contains&lt;br&gt;
a lot of details that are left out of most books:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.amazon.com/Digital-Signal-Processing-Signals-Systems/dp/0071454241/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1257688535&amp;sr=8-1&quot;&gt;http://www.amazon.com/Digital-Signal-Processing-Signals-Systems/dp/0071454241/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1257688535&amp;sr=8-1&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
  </channel>
</rss>

