<?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=Mark%27s_Article_on_the_DFT</id>
	<title>Mark&#039;s Article on the DFT - 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=Mark%27s_Article_on_the_DFT"/>
	<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Mark%27s_Article_on_the_DFT&amp;action=history"/>
	<updated>2026-04-05T19:53:49Z</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=Mark%27s_Article_on_the_DFT&amp;diff=4167&amp;oldid=prev</id>
		<title>Pridma: /* The DFT */</title>
		<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Mark%27s_Article_on_the_DFT&amp;diff=4167&amp;oldid=prev"/>
		<updated>2007-11-09T01:39:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;The DFT&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:39, 8 November 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==The DFT==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==The DFT==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;Discrete Fourier Transform&#039;&#039;, or &#039;&#039;DFT&#039;&#039; for short, is the Fourier Transform in the discrete world. It is almost exactly like the Fourier Transform.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;&#039;&#039;Discrete Fourier Transform&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;&#039;&#039;, or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;&#039;&#039;DFT&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&lt;/ins&gt;&#039;&#039; for short, is the Fourier Transform in the discrete world. It is almost exactly like the Fourier Transform.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===MATLAB script===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===MATLAB script===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pridma</name></author>
	</entry>
	<entry>
		<id>https://fweb.wallawalla.edu/class-wiki/index.php?title=Mark%27s_Article_on_the_DFT&amp;diff=4166&amp;oldid=prev</id>
		<title>Pridma: New page: ==The DFT== The &#039;&#039;Discrete Fourier Transform&#039;&#039;, or &#039;&#039;DFT&#039;&#039; for short, is the Fourier Transform in the discrete world. It is almost exactly like the Fourier Transform.  ===MATLAB script=== ...</title>
		<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Mark%27s_Article_on_the_DFT&amp;diff=4166&amp;oldid=prev"/>
		<updated>2007-11-09T01:39:16Z</updated>

		<summary type="html">&lt;p&gt;New page: ==The DFT== The &amp;#039;&amp;#039;Discrete Fourier Transform&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;DFT&amp;#039;&amp;#039; for short, is the Fourier Transform in the discrete world. It is almost exactly like the Fourier Transform.  ===MATLAB script=== ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==The DFT==&lt;br /&gt;
The &amp;#039;&amp;#039;Discrete Fourier Transform&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;DFT&amp;#039;&amp;#039; for short, is the Fourier Transform in the discrete world. It is almost exactly like the Fourier Transform.&lt;br /&gt;
&lt;br /&gt;
===MATLAB script===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
clear all;&lt;br /&gt;
tmax = 1; %The signal will run from 0 to tmax (in seconds)&lt;br /&gt;
T=.01; %Sampling period&lt;br /&gt;
wf=5; %Waveform frequency: the frequency of the signal to transform&lt;br /&gt;
t=0:T:tmax;&lt;br /&gt;
N=length(t);&lt;br /&gt;
%x = sin(wf*pi*t)./(wf*pi*t); %This signal did not work out well&lt;br /&gt;
%x((N+1)/2) = 1;&lt;br /&gt;
x = sin(2*pi*wf*t); %This is the signal to transform&lt;br /&gt;
X = 0.*t; %The fourier transform of the signal x (calculated by hand)&lt;br /&gt;
X((N+1)/2-round(wf*N*T)+1) = 0.5; %I did this to simulate the delta function&lt;br /&gt;
X((N+1)/2+round(wf*N*T)) = 0.5;&lt;br /&gt;
Xdft = fftshift(x); %The DFT (Discrete Fourier Transform of the signal x)&lt;br /&gt;
Xdftu = fft(x); %The DFT (Discrete Fourier Transform of the signal x)&lt;br /&gt;
Xdft((N+1)/2:N) = Xdftu(1:(N+1)/2); %The fftshift didn&amp;#039;t work for me&lt;br /&gt;
Xdft(1:(N+1)/2) = Xdftu((N+1)/2:N); %So this manually shifts the FFT&lt;br /&gt;
f = -1/(2*T):1/(N*T):1/(2*T)-1/(N*T);&lt;br /&gt;
figure(1)&lt;br /&gt;
plot(t, x)&lt;br /&gt;
title(&amp;#039;Original Sampled Signal&amp;#039;)&lt;br /&gt;
xlabel(&amp;#039;Time (s)&amp;#039;)&lt;br /&gt;
ylabel(&amp;#039;x(t)&amp;#039;)&lt;br /&gt;
figure(2)&lt;br /&gt;
plot(f, abs(Xdftu))&lt;br /&gt;
title(&amp;#039;Unshifted Discrete Fourier Transform of x(t)&amp;#039;)&lt;br /&gt;
xlabel(&amp;#039;Frequency&amp;#039;)&lt;br /&gt;
ylabel(&amp;#039;Magnitude of X(f)&amp;#039;)&lt;br /&gt;
figure(3)&lt;br /&gt;
plot(f, abs(Xdft))&lt;br /&gt;
title(&amp;#039;Shifted Discrete Fourier Transform of x(t)&amp;#039;)&lt;br /&gt;
xlabel(&amp;#039;Frequency&amp;#039;)&lt;br /&gt;
ylabel(&amp;#039;Magnitude of X(f)&amp;#039;)&lt;br /&gt;
figure(4)&lt;br /&gt;
plot(f, X)&lt;br /&gt;
title(&amp;#039;Actual Fourier Transform of x(t)&amp;#039;)&lt;br /&gt;
xlabel(&amp;#039;Frequency&amp;#039;)&lt;br /&gt;
ylabel(&amp;#039;Magnitude of X(f)&amp;#039;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Graphs===&lt;br /&gt;
[[Image:DFT20071108Fig1.png|thumb|left|694px| Figure 1. The sampled signal]]&lt;br /&gt;
&lt;br /&gt;
[[Image:DFT20071108Fig2.png|thumb|left|694px| Figure 2. The unshifted fast Fourier transform of Figure 1.]]&lt;br /&gt;
&lt;br /&gt;
[[Image:DFT20071108Fig3.png|thumb|left|694px| Figure 3. The shifted fast Fourier transform of Figure 1.]]&lt;br /&gt;
&lt;br /&gt;
[[Image:DFT20071108Fig4.png|thumb|left|694px| Figure 4. The actual Fourier transform of Figure 1.]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Explanations===&lt;br /&gt;
&lt;br /&gt;
I picked a sine wave of frequency 5 for my signal. (Shown in Figure 1.) I sampled it and took the discrete Fourier transform of the signal. (Shown in figure 2.) Using the FFT algorithm, the transform only shows the positive frequencies. You have to shift the graph to get the correct frequencies. Figure 3 shows the shifted (and now correct) graph. In Figure 4, I&amp;#039;ve shown the actual Fourier transform of the signal. As you can see, they are very similar. The heights are different and on the DFT graph, you&amp;#039;ll see some frequencies other than the exact frequencies, but that is because of sampling.&lt;/div&gt;</summary>
		<author><name>Pridma</name></author>
	</entry>
</feed>