Page 1 of 1

** USING MATLAB (will not have access to the files or data but please write the code that would be used for the followin

Posted: Sun Jul 03, 2022 11:59 am
by answerhappygod
** USING MATLAB (will not have access to the files or data butplease write the code that would be used for the followinganyways)
Using Matlab Will Not Have Access To The Files Or Data But Please Write The Code That Would Be Used For The Followin 1
Using Matlab Will Not Have Access To The Files Or Data But Please Write The Code That Would Be Used For The Followin 1 (123.34 KiB) Viewed 20 times
Question No. 1 [25 points] An electrocardiogram records the electrical signals in the heart. a. Read the data provided in the files, ECG_Afzal_preExercise.xlsx and ECG_Afzal_postExercise.xlsx. Plot the data in each file as two subplots. The top plot should show the ECG during pre-exercise and the bottom plot should show the ECG post-exercise. Label the x and y-axis appropriately. Also, put an appropriate title for the plot. b. Calculate the heart rate during the pre and post-exercise. The total duration of the data is 10 sec. To do this you will need to count the peaks (QRS complexes) in the signals. Use the findpeaks function to identify the peaks. To learn more about findpeaks, use help. (If Matlab gives you an error saying the signal processing toolbox is required then please install the toolbox before using findpeaks)