New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Dr. Reina Hane
Dr. Reina Hane
GPA 3.79


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in Electrical Engineering & Computer Science

This 3 page Class Notes was uploaded by Dr. Reina Hane on Monday October 19, 2015. The Class Notes belongs to ECE 497 at Rose-Hulman Institute of Technology taught by Staff in Fall. Since its upload, it has received 17 views. For similar materials see /class/225085/ece-497-rose-hulman-institute-of-technology in Electrical Engineering & Computer Science at Rose-Hulman Institute of Technology.

Similar to ECE 497 at RHIT

Popular in Electrical Engineering & Computer Science


Reviews for EcoCAR


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/19/15
ECE497BME491 Applied Biomedical Signal Processing Laptop Day 3 Due at the end of class7 December 157 2006 Today we have the following goals 0 plot the frequency response of a discrete time lter 0 lter a discrete time signal 0 implement a lter to remove baseline wander o implement a moving average MA lter At the end of class you should turn in two plots and answers to some questions 1 Go to the class website and download the program laptop3m and the data les engmdat and eeg5dat There are ve input arguments to laptop3m o the name of the data le in single quotes 0 the starting point index in the le usually the rst point in the le so this is usually a 1 o the number of sample points in the le 0 the location of the pole in the lter used to remove the baseline wander o the order of the MA lter 2 Start Matlab set the directly to where your programdata les are To be sure everything is ok invoke the program as follows laptop308 21 ecgbndat 13000 If you have done everything correctly so far it should plot the original signal 3 We next want to implement a simple lter that will remove the baseline wander without modifying the signal too much In class we showed one such lter had the transfer function 1 7 2 1 1 04 1 7 042 1 2 Here 04 is the location of the pole we will use so the lter will hopefully remove the low fre quency components of the signal while leaving the remaining frequency components alone 1112 Matlab generally expects a lter to be of the form 7 b1 bgzil bgziz bN1ZiN 7 a1 122 132 aNHz N and to implement the lter in Matlab we enter the b and a coef cients as vectors b b1 b2 b3 bN a a1 a2 a3 aN Note that the lengths of the a and b vectors must be the same7 which usually means you need to pad the a vector with zeros Determine the correct a and b vectors for our lter to remove baseline wander7 and type it into lapt0p3m Your coef cients should be a function of the variable alpha7 which is passed to the function 4 In order to lter the input signal using the lter coef cients we have determined7 we will use the Matlab function lter7 which is fairly easy to do We just need to pass it the b and a vectors as well as the signal to be ltered Let7s assume the signal to be ltered is an array called 5 and we want the ltered signal to be called 17 Then we just type p filterbax Modify your Matlab code to so the input signal can be ltered using the lter you implemented in part 3 Call your ltered signal 17 5 We also want to be able to plot the frequency response of our lter There are many ways to do this7 we will use the f7quotqu function For this function we pass it the a and b vectors7 and it returns the frequency response magnitude and phase Hem at selected frequencies 9 Note that 0 S Q S 7139 To use this we type H1Dmega1 freqzba lmplement this in Matlab for your lter Note that in order to convert this frequency to a real frequency we need to scale using frag where fS is the sampling frequency and frag corresponds to the real frequency 6 Uncomment the plotting parts of the code at the bottom of laptop m7 and run lapt0p3m using 04 08 you should get plots like those shown in Figure 1 There are more plots here that you have so far 7 We next need to implement the moving average lter The input signal to this lter will be 177 which was the output of our rst lter7 and the output of the lter will be y The easiest way to implement this is with the Matlab code a zeros1order a1 1 b ones1orderorder lmplement this in lat0p3m and put in the code to lter pto get y Next put in code to determine the frequency response of the MA lter Finally modify the code to plot all of the results If you have done everything correctly you should get the same graph as in Figure 1 if you use 04 08 and order 21 8 The choice of parameters for this exercise was really quite poor Modify your choice of Oz and the order of the MA lter so the output looks as much like the original signal as possible without the original signals baseline offset and noise lnclude uncomment the code to limit all of the axes for co p7 and y so the range is from 25 to 357 so they are all plotted on the same scaleTuru in your nal plot 9 Try process the data in the le ecg5dat This data le is sampled at 200 HZ7 so your code will have to be modi ed In particular7 remove the axis scaling and modify the sampling frequency Process this le using the rst 3000 samples Modify your parameters as necessary to produce a resulting plot with little baseline wander and with the signal looking as much like the original signals as possible Turn in your plot Turn in your code on 08 MA ler order 21 5 l l l l l g 0 5 l l l l l 0 05 1 15 2 25 3 Timesec quot l l l l emwl it ll it i 1 Q rm W W n w w W w V rquot n l l l l l 0 05 1 15 2 25 3 Timesec 1 l l l l l E 0 1 l l l l l 0 05 1 15 2 25 3 Timesec i i l i l i l i l l 0 50 100 150 200 250 300 350 400 450 500 Frequency Hz l 1 l l 0 50 100 150 200 250 300 350 400 450 500 Frequency Hz Figure 1 Results from processing data le ecgjmdat using 04 08 and order 21


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Jennifer McGill UCSF Med School

"Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over $500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.