Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

https://drive.google.com/file/d/0Bz-fDaKegSpzRkduU045dF9BNlE/view?usp=sharing I need this in MATLAB AND PLEASE MATLAB and the load file is in that link File.Mat There is a data file in the

https://drive.google.com/file/d/0Bz-fDaKegSpzRkduU045dF9BNlE/view?usp=sharing

I need this in MATLAB AND PLEASE MATLAB and the load file is in that link File.Mat

There is a data file in the Sakai > Resources > Homework folder (ECG_data_file.mat) which contains ECG measurements (in millivolts, mV) from 4 patients at the Beth Israel Deaconess medical center. Copy this file into your Matlab current folder. a) Load this data into your Matlab workspace. You will have a variable named ECG_data which contains the data points. What is the size of this variable (i.e. how many rows and columns are there)? [1 point] (Hint: use load(ECG_data_file.mat)); b) Each ECG recording was made at 90 samples per second. I.e. each individual data point was measured 1/90 sec apart. Create a vector of time points matching the length of the ECG data. Plot this vector against the ECG recording for the first patient only. (Check that the size of the vectors match in the Matlab Workspace). Dont forget to label the axes. [3 points] c) Use Matlabs subplot function to create a figure containing all four ECG recordings, each in their own separate axes. Use a different color for each recording. [2 points] d) Extract the ECG signal for the second patient from the ECG_data variable into a new variable, from t = 3 to t = 5 seconds only. Smooth out the noise in this signal by using Matlabs filter function to perform a moving average with a window size of four. (Hint: look at the Help file for this function. Use a = 1, b = [1/4 1/4 1/4 1/4];) Plot the original ECG signal and the smoothed ECG signal in the same axes from t = 3.5 to t = 5 seconds using different colors. Include axis labels and a legend. [3 points] e) What is the mean ECG signal level (rounded to the nearest mV) for each patient? [1 point]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

I just need this answered blah blah python

Answered: 1 week ago