# Connexions

You are here: Home » Content » MATLAB FIR Filter Design Exercise

### Recently Viewed

This feature requires Javascript to be enabled.

### Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

# MATLAB FIR Filter Design Exercise

Module by: Hyeokho Choi. E-mail the author

Summary: This is FIR filter design exercise in MATLAB.

Note: You are viewing an old version of this document. The latest version is available here.

## FIR Filter Design MATLAB Exercise

### Design by windowing

#### Exercise 1

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.

##### Solution


b = fir1(40,10.0/48.0)



### Parks-McClellan Optimal Design

#### Exercise 2

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.

##### Solution


b = remez(40,[1 1 0 0],[0 10/48 11/48 1])



## Content actions

### Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks