<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="m10918">
    <name>MATLAB FIR Filter Design Exercise</name>
    <metadata>
  <md:version>2.1</md:version>
  <md:created>2002/10/14</md:created>
  <md:revised>2002/10/14</md:revised>
  <md:authorlist>
      <md:author id="choi">
      <md:firstname>Hyeokho</md:firstname>
      
      <md:surname>Choi</md:surname>
      <md:email>choi@ece.rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="choi">
      <md:firstname>Hyeokho</md:firstname>
      
      <md:surname>Choi</md:surname>
      <md:email>choi@ece.rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>exercise</md:keyword>
    <md:keyword>FIR</md:keyword>
    <md:keyword>MATLAB</md:keyword>
  </md:keywordlist>

  <md:abstract>This is FIR filter design exercise in MATLAB.
</md:abstract>
</metadata>



    <content>
      <section id="sec1">
	<name>FIR Filter Design MATLAB Exercise</name>

	<section id="subsec1">
	  <name>Design by windowing</name>
	  <exercise id="ex1">
	    <problem>
	      <para id="p1">
		Assuming sampling rate at 48kHz, design an order-40
		low-pass filter having cut-off frequency 10kHz by
		windowing method. In your design, use Hamming window
		as the windowing function.
	      </para>
	    </problem>
	    <solution>
	      <code type="block">
		<![CDATA[
		b = fir1(40,10.0/48.0)
		]]>
	      </code>
	    </solution>
	  </exercise>

	</section>
	<section id="subsec2">
	  <name>Parks-McClellan Optimal Design</name>
	  <exercise id="ex2">
	    <problem>
	      <para id="p2">
		Assuming sampling rate at 48kHz, design an order-40
		lowpass filter having transition band 10kHz-11kHz
		using the Parks-McClellan optimal FIR filter design
		algorithm.
	      </para>
	    </problem>
	    <solution>
	      <code type="block">
		<![CDATA[
		b = remez(40,[1 1 0 0],[0 10/48 11/48 1])
		]]>
	      </code>
	    </solution>
	  </exercise>
	</section>
      </section>

      <para id="delete_me">
	<!-- Insert module text here -->
      </para>   
    </content>
    
  </document>
