Lecture30_Serial_Comm_V - Peak Detection

Task 1:
Use the serial signal communication techniques you learned in the past lectures, to collect a voltage series that have sharp peak like the figure below:

Save your data on your harddrive. Then load the data as the script does below. Use 'findpeaks()' function to find out the peaks and the locations of the data.

The prominence of a peak measures how much the peak stands out due to its intrinsic height and its location relative to other peaks. A low isolated peak can be more prominent than one that is higher but is an otherwise unremarkable member of a tall range.
Minimum peak prominence, specified as the comma-separated pair consisting of 'MinPeakProminence' and a real scalar. Use this argument to have findpeaks return only those peaks that have a relative importance of at least 'MinPeakProminence'.

Use the peak detection method to mark all the peaks in your signal. Make sure you customize the following features in your plot and make it looks presentable: labels, titles, proper font size for the labels, marker size, line width, and the plot frame line width (set gca).

Task 2:
Complete the following code to label the peaks that are higher than 1.2 in the figure. (the data is in the Matlab library, so feel free to just load it).

Example plotting:

Modify the figure title/frame/line width/font size/mark size/lables to make it looks more presentable.

Submit an electronic version of your report to the email. Again, have figures, captions, title, explanations, and your code as the appendix. Due Wednesday.