<?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=Interpolation_using_the_DFT_Example_Script</id>
	<title>Interpolation using the DFT Example Script - 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=Interpolation_using_the_DFT_Example_Script"/>
	<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Interpolation_using_the_DFT_Example_Script&amp;action=history"/>
	<updated>2026-04-06T14:21:34Z</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=Interpolation_using_the_DFT_Example_Script&amp;diff=10039&amp;oldid=prev</id>
		<title>Frohro: Created page with &#039;====Interpolation Using the DFT====  You can use the DFT to interpolate by adding zeros at high frequency in the DFT and then applying the inverse DFT to obtain the interpolated …&#039;</title>
		<link rel="alternate" type="text/html" href="https://fweb.wallawalla.edu/class-wiki/index.php?title=Interpolation_using_the_DFT_Example_Script&amp;diff=10039&amp;oldid=prev"/>
		<updated>2010-11-15T23:45:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;====Interpolation Using the DFT====  You can use the DFT to interpolate by adding zeros at high frequency in the DFT and then applying the inverse DFT to obtain the interpolated …&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====Interpolation Using the DFT====&lt;br /&gt;
&lt;br /&gt;
You can use the DFT to interpolate by adding zeros at high frequency in the DFT and then applying the inverse DFT to obtain the interpolated data.  Note that high frequencies are the central points of the DFT.  Play with the script below to learn all you can about interpolation using the DFT.&lt;br /&gt;
&lt;br /&gt;
 % This function investigates the effect of zero filling.&lt;br /&gt;
 clear;&lt;br /&gt;
 clg;&lt;br /&gt;
 N = 10;  % Must be even for the fftshift part to work right.&lt;br /&gt;
 T = .1;&lt;br /&gt;
 t=0:T:(N-1)*T;&lt;br /&gt;
 x=sin(2*pi*t)+sin(2*pi*2*t);&lt;br /&gt;
 figure(1);&lt;br /&gt;
 plot(t,x,&amp;#039;ro&amp;#039;);&lt;br /&gt;
 xlabel(&amp;#039;Time&amp;#039;);&lt;br /&gt;
 ylabel(&amp;#039;x(t)&amp;#039;);&lt;br /&gt;
 title(&amp;#039;Interpolation in Time Using the DFT&amp;#039;)&lt;br /&gt;
 hold&lt;br /&gt;
 legend(&amp;#039;Original Data&amp;#039;)&lt;br /&gt;
 N1 = 30;&lt;br /&gt;
 X = fft(x);&lt;br /&gt;
 X1 = (N1+N)/N*[X(1:N/2),zeros(1,N1)*10,X(N/2+1:N)];&lt;br /&gt;
 x1 = ifft(X1);&lt;br /&gt;
 t1=0:N/(N+N1)*T:(N-1/(N1+N))*T;&lt;br /&gt;
 plot(t1,x1,&amp;#039;bo&amp;#039;)&lt;br /&gt;
 plot(t,x,&amp;#039;ro&amp;#039;);&lt;br /&gt;
 %legend(&amp;#039;Original Data&amp;#039;,&amp;#039;Interpolated Data&amp;#039;);&lt;br /&gt;
 t2=0:.0001:1;&lt;br /&gt;
 plot(t2,sin(2*pi*t2)+sin(2*pi*2*t2),&amp;#039;c-&amp;#039;)&lt;/div&gt;</summary>
		<author><name>Frohro</name></author>
	</entry>
</feed>