<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MathWorks Conversations and the FFT</title>
	<atom:link href="http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/</link>
	<description>This blog is about Simulink.</description>
	<lastBuildDate>Sat, 11 Feb 2012 11:34:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Xianyu</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1673</link>
		<dc:creator>Xianyu</dc:creator>
		<pubDate>Sun, 08 Jan 2012 00:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1673</guid>
		<description>Dear Sir,

I have a problem at hand that requires urgent attention. Thing is I&#039;ve never used Simulink before and right now its required for me to FFT a continuous signal output from my vehicle model.

Thing is it is a continuous signal and I am facing problems trying to even implement the FFT. Even when there is no errors there would not be any output. So yes i&#039;m desperate for help.

thanks.
XY</description>
		<content:encoded><![CDATA[<p>Dear Sir,</p>
<p>I have a problem at hand that requires urgent attention. Thing is I&#8217;ve never used Simulink before and right now its required for me to FFT a continuous signal output from my vehicle model.</p>
<p>Thing is it is a continuous signal and I am facing problems trying to even implement the FFT. Even when there is no errors there would not be any output. So yes i&#8217;m desperate for help.</p>
<p>thanks.<br />
XY</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1652</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Wed, 21 Dec 2011 21:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1652</guid>
		<description>Hello, 

   I think it would be useful to have a matlab function that directly computes time domain response from s-domain system transfer function available only as numerical data: 
G(s=jw). While I realize there are subtleties in the FFT and iFFT scaling I&#039;d rather not be bothered by these issues, since my focus is on dyanmics rather than signal procressing techniques and algorithms. 

Amit.</description>
		<content:encoded><![CDATA[<p>Hello, </p>
<p>   I think it would be useful to have a matlab function that directly computes time domain response from s-domain system transfer function available only as numerical data:<br />
G(s=jw). While I realize there are subtleties in the FFT and iFFT scaling I&#8217;d rather not be bothered by these issues, since my focus is on dyanmics rather than signal procressing techniques and algorithms. </p>
<p>Amit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Issopui</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1156</link>
		<dc:creator>Issopui</dc:creator>
		<pubDate>Sun, 25 Jul 2010 21:23:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1156</guid>
		<description>Hi Seth,

Thanks for the naswer regarding Saurabh&#039;s question. I&#039;am having the same problem. I don&#039;t have the Signal Processing Blockset install in my Matlab. I wanted to write a script to generate it form my output signal. As a newbie with Matlab I don&#039;t really know how to introce the time and the different part of the script. This is what I have writen but it doesn&#039;t work.
dt = 1/100;
T = 100;
t = (0:dt:T-dt);

x1 = voltage2.signals.values(:,1);
y = fft(x1)/length(x1)*2;
m = abs(y);
m(1)= m(1)/2;
f = (0:length(y)-1)*100/length(y);
plot(f,20*log10(m)),

hold on
ylabel(&#039;Abs. Magnitude dB&#039;),

x2 = voltage3.signals.values(:,1);
y = fft(x2)/length(x2)*2;
m = abs(y);
m(1)= m(1)/2;
f = (0:length(y)-1)*100/length(y);
plot(f,20*log10(m),&#039;-.&#039;),
axis ([0 max(f)/2  -60 10])
hold off
h = legend(&#039;Uu&#039;,&#039;Uu0&#039;);

It&#039;s the ouput voltage of a 2 level 4 quadrant IGBT circuit.
X1 is the line to virtual neutral of the &quot;Y&quot; connected out put load voltage and X2 is the line to ground load voltage.
Please could u help me. 
Many thanks.</description>
		<content:encoded><![CDATA[<p>Hi Seth,</p>
<p>Thanks for the naswer regarding Saurabh&#8217;s question. I&#8217;am having the same problem. I don&#8217;t have the Signal Processing Blockset install in my Matlab. I wanted to write a script to generate it form my output signal. As a newbie with Matlab I don&#8217;t really know how to introce the time and the different part of the script. This is what I have writen but it doesn&#8217;t work.<br />
dt = 1/100;<br />
T = 100;<br />
t = (0:dt:T-dt);</p>
<p>x1 = voltage2.signals.values(:,1);<br />
y = fft(x1)/length(x1)*2;<br />
m = abs(y);<br />
m(1)= m(1)/2;<br />
f = (0:length(y)-1)*100/length(y);<br />
plot(f,20*log10(m)),</p>
<p>hold on<br />
ylabel(&#8216;Abs. Magnitude dB&#8217;),</p>
<p>x2 = voltage3.signals.values(:,1);<br />
y = fft(x2)/length(x2)*2;<br />
m = abs(y);<br />
m(1)= m(1)/2;<br />
f = (0:length(y)-1)*100/length(y);<br />
plot(f,20*log10(m),&#8217;-.&#8217;),<br />
axis ([0 max(f)/2  -60 10])<br />
hold off<br />
h = legend(&#8216;Uu&#8217;,'Uu0&#8242;);</p>
<p>It&#8217;s the ouput voltage of a 2 level 4 quadrant IGBT circuit.<br />
X1 is the line to virtual neutral of the &#8220;Y&#8221; connected out put load voltage and X2 is the line to ground load voltage.<br />
Please could u help me.<br />
Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chai</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1155</link>
		<dc:creator>Chai</dc:creator>
		<pubDate>Fri, 23 Jul 2010 22:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1155</guid>
		<description>Hi Seth,
I am having a scaling problem with performing FFT in Simulink as well. When the output is displayed on a vector scope the resulting magnitude is too high compared to the theoretical value. While this alone is not the problem. The amplitude varies with FFT length and with the stop time too.
Any suggestions on scaling it appropriately?

Regards,
Chai</description>
		<content:encoded><![CDATA[<p>Hi Seth,<br />
I am having a scaling problem with performing FFT in Simulink as well. When the output is displayed on a vector scope the resulting magnitude is too high compared to the theoretical value. While this alone is not the problem. The amplitude varies with FFT length and with the stop time too.<br />
Any suggestions on scaling it appropriately?</p>
<p>Regards,<br />
Chai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dragan</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1104</link>
		<dc:creator>Dragan</dc:creator>
		<pubDate>Thu, 10 Jun 2010 17:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1104</guid>
		<description>Dear Seth,
I&#039;m starting with just a frequency response and I&#039;m having trouble re-adjusting the response( ie scaling) such that ifft could be used to generate a time domaine response.  Here is a sample code that I&#039;ve generated for a one simple transfer function example(ie g(jw)=1/(jw+1)). 
&lt;pre&gt;
k=1;
p=-1;
dt=1e-2;
tstop=30.01;

%Time period
t=0:dt:tstop;

%Apply  Freq Response
freq=0:1/tstop:1/dt;    
jw=j*2*pi*freq;
w=2*pi*freq;
for d=1:length(freq)
    g(d)=k/(jw(d)-p);
end
% %double sided response
n=length(g)
m=fliplr(conj(g(2:((n)/2+1))));
mm=[g(1:(n)/2) m]*n;
 x=real(ifft(mm))/tstop;
plot(t,x)
hold on
 %Known Time domain result from Laplace
 for d=1:length(t)
   h(d)=exp(p*t(d));
 end
plot(t,h,&#039;r&#039;)
&lt;/pre&gt;
How would I handle the maximum frequency point with an even number of points? Is my scaling of my result correct?  I hope that you can help me clear the issues behind ifft/fft. Thanks once again,

Dragan</description>
		<content:encoded><![CDATA[<p>Dear Seth,<br />
I&#8217;m starting with just a frequency response and I&#8217;m having trouble re-adjusting the response( ie scaling) such that ifft could be used to generate a time domaine response.  Here is a sample code that I&#8217;ve generated for a one simple transfer function example(ie g(jw)=1/(jw+1)). </p>
<pre>
k=1;
p=-1;
dt=1e-2;
tstop=30.01;

%Time period
t=0:dt:tstop;

%Apply  Freq Response
freq=0:1/tstop:1/dt;
jw=j*2*pi*freq;
w=2*pi*freq;
for d=1:length(freq)
    g(d)=k/(jw(d)-p);
end
% %double sided response
n=length(g)
m=fliplr(conj(g(2:((n)/2+1))));
mm=[g(1:(n)/2) m]*n;
 x=real(ifft(mm))/tstop;
plot(t,x)
hold on
 %Known Time domain result from Laplace
 for d=1:length(t)
   h(d)=exp(p*t(d));
 end
plot(t,h,'r')
</pre>
<p>How would I handle the maximum frequency point with an even number of points? Is my scaling of my result correct?  I hope that you can help me clear the issues behind ifft/fft. Thanks once again,</p>
<p>Dragan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeoffrey</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1094</link>
		<dc:creator>Jeoffrey</dc:creator>
		<pubDate>Sun, 30 May 2010 21:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1094</guid>
		<description>@Jay - I&#039;m glad this helped! Any Digital Signal Processing text should cover this material. For example, the text &quot;Discrete-Time Signal Processing by Oppenheim, A. V. and R. W. Schafer&quot; should still be in print. As for the different time a frequency terminologies used in MATLAB, the following help documentation provides the complete list:

     http://www.mathworks.com/access/helpdesk/help/toolbox/dspblks/ug/f13-54010.html#f13-23126</description>
		<content:encoded><![CDATA[<p>@Jay &#8211; I&#8217;m glad this helped! Any Digital Signal Processing text should cover this material. For example, the text &#8220;Discrete-Time Signal Processing by Oppenheim, A. V. and R. W. Schafer&#8221; should still be in print. As for the different time a frequency terminologies used in MATLAB, the following help documentation provides the complete list:</p>
<p>     <a href="http://www.mathworks.com/access/helpdesk/help/toolbox/dspblks/ug/f13-54010.html#f13-23126" rel="nofollow">http://www.mathworks.com/access/helpdesk/help/toolbox/dspblks/ug/f13-54010.html#f13-23126</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1091</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 25 May 2010 16:42:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-1091</guid>
		<description>Thanks for this.  It answers most of my questions.  Can you recommend a good, IN PRINT reference text that covers all of these issues?  Another one that isn&#039;t well covered is how to convert DFT&#039;s between &quot;normalized&quot; and un-normalized frequencies.  The reference texts you give are all dated and mostly out of print; or they cover one issue but not the others.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for this.  It answers most of my questions.  Can you recommend a good, IN PRINT reference text that covers all of these issues?  Another one that isn&#8217;t well covered is how to convert DFT&#8217;s between &#8220;normalized&#8221; and un-normalized frequencies.  The reference texts you give are all dated and mostly out of print; or they cover one issue but not the others.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-893</link>
		<dc:creator>Prashant</dc:creator>
		<pubDate>Thu, 12 Nov 2009 15:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-893</guid>
		<description>How can I have same example but instead AC(1 to 10V 50 or 60Hz) and DC(0.5 to 10 V) then adding AC+DC but out put should be only DC signal? I will be very glad to know if this kind of*. m code can be transferred to simulink block where the block accepts AC+DC as input and the out put as DC signal only.

This example is quite good to know.</description>
		<content:encoded><![CDATA[<p>How can I have same example but instead AC(1 to 10V 50 or 60Hz) and DC(0.5 to 10 V) then adding AC+DC but out put should be only DC signal? I will be very glad to know if this kind of*. m code can be transferred to simulink block where the block accepts AC+DC as input and the out put as DC signal only.</p>
<p>This example is quite good to know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-695</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Sun, 01 Mar 2009 21:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-695</guid>
		<description>@Saurabh - The blocks I think you are looking for are part of the Signal Processing Blockset.  You can find an FFT block in the Power Spectrum Estimation library.  There is also a Spectrum Scope in the Signal Processing sinks.  If you don&#039;t have the Signal Processing Blockset, output your signal data to the MATLAB work space and compute and FFT from there.  I hope that helps.</description>
		<content:encoded><![CDATA[<p>@Saurabh &#8211; The blocks I think you are looking for are part of the Signal Processing Blockset.  You can find an FFT block in the Power Spectrum Estimation library.  There is also a Spectrum Scope in the Signal Processing sinks.  If you don&#8217;t have the Signal Processing Blockset, output your signal data to the MATLAB work space and compute and FFT from there.  I hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saurabh</title>
		<link>http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-694</link>
		<dc:creator>Saurabh</dc:creator>
		<pubDate>Sat, 28 Feb 2009 09:35:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/seth/2009/01/30/mathworks-conversations-and-the-fft/#comment-694</guid>
		<description>Sir,
I have tried a lot but i am unable to find fft in simulunk. Can you tell me which block should i use to find fft and which scope block to see it?
Thankyou.</description>
		<content:encoded><![CDATA[<p>Sir,<br />
I have tried a lot but i am unable to find fft in simulunk. Can you tell me which block should i use to find fft and which scope block to see it?<br />
Thankyou.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

