Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Finding the peaks of a signal. In order to find the peaks in our ECG signal we will use the MAILAB function 'findpeaks'. [pks, locs
Finding the peaks of a signal. In order to find the peaks in our ECG signal we will use the MAILAB function 'findpeaks'. [pks, locs ]= findpeaks (V, 'MinPeakHeight',MPH, 'MinPeakDistance', MPD) ; Here, ' V ' is the signal we're analyzing, 'pks' is the value of the function V at each peak, and 'locs' is the index of V where the peak was found. MPD specifies the minimum distance (in \# samples or index \#s) between peaks; MPH specifies the minimum height of a peak. a. We will try this function using a 1kHz(1000 samples/sec) time vector (t) that is four seconds long. b. Define the signal V as the sum of 1Hz and a 50Hz sine wave. c. Find all the peaks with a height greater than 0(MPH=0,MPD=0). d. Plot the signal V against time. Add a red circle to the plot for each peak. You'll see that there are a lot of peaks! e. Next, adjust MPD and MPH so that we find only the major peaks (from the 1Hz sine wave) without finding all of the sub-peaks (from the 50Hz sine wave). Try setting MPD to represent a 0.2 second spacing; you'll have to convert 0.2 sec to time steps. Then select a value of MPH so that only the four major peaks are detected. f. Plot the signal V against time, include red circles for each peak detected
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started