<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://fweb.wallawalla.edu/class-wiki/index.php?action=history&amp;feed=atom&amp;title=FFT_Example</id>
	<title>FFT Example - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://fweb.wallawalla.edu/class-wiki/index.php?action=history&amp;feed=atom&amp;title=FFT_Example"/>
	<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=FFT_Example&amp;action=history"/>
	<updated>2026-04-06T17:39:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://fweb.wallawalla.edu/class-wiki/index.php?title=FFT_Example&amp;diff=11451&amp;oldid=prev</id>
		<title>Frohro: Created page with &quot; &lt;nowiki&gt; import matplotlib.pyplot as plt import plotly.plotly as py import numpy as np # Learn about API authentication here: https://plot.ly/python/getting-started # Find yo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=FFT_Example&amp;diff=11451&amp;oldid=prev"/>
		<updated>2015-11-12T20:44:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;lt;nowiki&amp;gt; import matplotlib.pyplot as plt import plotly.plotly as py import numpy as np # Learn about API authentication here: https://plot.ly/python/getting-started # Find yo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; &amp;lt;nowiki&amp;gt;&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
import plotly.plotly as py&lt;br /&gt;
import numpy as np&lt;br /&gt;
# Learn about API authentication here: https://plot.ly/python/getting-started&lt;br /&gt;
# Find your api_key here: https://plot.ly/settings/api&lt;br /&gt;
&lt;br /&gt;
Fs = 150.0;  # sampling rate&lt;br /&gt;
Ts = 1.0/Fs; # sampling interval&lt;br /&gt;
t = np.arange(0,1,Ts) # time vector&lt;br /&gt;
&lt;br /&gt;
ff = 11.5  # frequency of the signal&lt;br /&gt;
y = np.sin(2*np.pi*ff*t)&lt;br /&gt;
&lt;br /&gt;
n = len(y) # length of the signal&lt;br /&gt;
k = np.arange(n)&lt;br /&gt;
T = n/Fs&lt;br /&gt;
frq = k/T # two sides frequency range&lt;br /&gt;
frq = frq[range(n/2)] # one side frequency range&lt;br /&gt;
&lt;br /&gt;
Y = np.fft.fft(y)/n # fft computing and normalization&lt;br /&gt;
Y = Y[range(n/2)]&lt;br /&gt;
&lt;br /&gt;
fig, ax = plt.subplots(2, 1)&lt;br /&gt;
ax[0].plot(t,y)&lt;br /&gt;
ax[0].set_xlabel(&amp;#039;Time&amp;#039;)&lt;br /&gt;
ax[0].set_ylabel(&amp;#039;Amplitude&amp;#039;)&lt;br /&gt;
ax[1].plot(frq,abs(Y),&amp;#039;r&amp;#039;) # plotting the spectrum&lt;br /&gt;
ax[1].set_xlabel(&amp;#039;Freq (Hz)&amp;#039;)&lt;br /&gt;
ax[1].set_ylabel(&amp;#039;|Y(freq)|&amp;#039;)&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Frohro</name></author>
	</entry>
</feed>