This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function [maxtab, mintab]=peakdet(v, delta, x) | |
| %PEAKDET Detect peaks in a vector | |
| % [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local | |
| % maxima and minima ("peaks") in the vector V. | |
| % MAXTAB and MINTAB consists of two columns. Column 1 | |
| % contains indices in V, and column 2 the found values. | |
| % | |
| % With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices | |
| % in MAXTAB and MINTAB are replaced with the corresponding | |
| % X-values. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <DieCutLabel Version="8.0" Units="twips"> | |
| <PaperOrientation>Portrait</PaperOrientation> | |
| <Id>Small30332</Id> | |
| <PaperName>30332 1 in x 1 in</PaperName> | |
| <DrawCommands> | |
| <RoundRectangle X="0" Y="0" Width="1440" Height="1440" Rx="180" Ry="180" /> | |
| </DrawCommands> | |
| <ObjectInfo> | |
| <TextObject> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from math import pi, log | |
| import pylab | |
| from scipy import fft, ifft | |
| from scipy.optimize import curve_fit | |
| i = 10000 | |
| x = np.linspace(0, 3.5 * pi, i) | |
| y = (0.3*np.sin(x) + np.sin(1.3 * x) + 0.9 * np.sin(4.2 * x) + 0.06 * | |
| np.random.randn(i)) |