<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983</link>
    <title>MATLAB Central Newsreader - fft, frequecy of a signal</title>
    <description>Feed for thread: fft, frequecy of a signal</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 16 Jun 2008 07:49:02 -0400</pubDate>
      <title>fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437562</link>
      <author>muzaffar </author>
      <description>Dear All,&lt;br&gt;
Hi,&lt;br&gt;
i have a signal out put taken in micro second time domain.&lt;br&gt;
How can i find out its frequency?&lt;br&gt;
Kind regards.</description>
    </item>
    <item>
      <pubDate>Mon, 16 Jun 2008 10:23:14 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437584</link>
      <author>Greg Heath</author>
      <description>On Jun 16, 3:49=A0am, &quot;muzaffar &quot; &amp;lt;muzaffarbas...@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Dear All,&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; i have a signal out put taken in micro second time domain.&lt;br&gt;
&amp;gt; How can i find out its frequency?&lt;br&gt;
&amp;gt; Kind regards.&lt;br&gt;
&lt;br&gt;
help fft&lt;br&gt;
doc fft&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 07:15:34 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437796</link>
      <author>Nasser Abbasi</author>
      <description>&lt;br&gt;
&quot;muzaffar &quot; &amp;lt;muzaffarbashir@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:g355te$q0r$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Dear All,&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; i have a signal out put taken in micro second time domain.&lt;br&gt;
&amp;gt; How can i find out its frequency?&lt;br&gt;
&amp;gt; Kind regards.&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Sorry, but I can't parse the above.&lt;br&gt;
&lt;br&gt;
What exactly is the known information about the signal?&lt;br&gt;
&lt;br&gt;
Nasser</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 08:00:20 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437805</link>
      <author>muzaffar </author>
      <description>&quot;Nasser Abbasi&quot; &amp;lt;nma@12000.org&amp;gt; wrote in message &lt;br&gt;
&amp;lt;zvJ5k.12906$Ri.2282@flpi146.ffdc.sbc.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;muzaffar &quot; &amp;lt;muzaffarbashir@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:g355te$q0r$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Dear All,&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt; i have a signal out put taken in micro second time &lt;br&gt;
domain.&lt;br&gt;
&amp;gt; &amp;gt; How can i find out its frequency?&lt;br&gt;
&amp;gt; &amp;gt; Kind regards.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sorry, but I can't parse the above.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What exactly is the known information about the signal?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Nasser&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
Thanks for the reply,&lt;br&gt;
I know length of the signal, total time and time intervals &lt;br&gt;
for values of output.&lt;br&gt;
i want to know what is frequency?&lt;br&gt;
kind regards.</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 11:41:05 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437855</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g37quk$et6$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
muzaffar  &amp;lt;muzaffarbashir@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&quot;Nasser Abbasi&quot; &amp;lt;nma@12000.org&amp;gt; wrote in message &lt;br&gt;
&amp;gt;&amp;lt;zvJ5k.12906$Ri.2282@flpi146.ffdc.sbc.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; &quot;muzaffar &quot; &amp;lt;muzaffarbashir@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt;&amp;gt; news:g355te$q0r$1@fred.mathworks.com...&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; How can i find out its frequency?&lt;br&gt;
&lt;br&gt;
&amp;gt;I know length of the signal, total time&lt;br&gt;
&lt;br&gt;
Standard definition of frequency: samples per second.&lt;br&gt;
So divide the number of samples (the length) by the total time.&lt;br&gt;
(Provided, that is, that the signal was sampled at regular&lt;br&gt;
intervals.)&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;Prevention is the daughter of intelligence.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Sir Walter Raleigh</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 13:14:02 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437871</link>
      <author>Bryan </author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in &lt;br&gt;
message &amp;lt;g387sh$48v$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; Standard definition of frequency: samples per second.&lt;br&gt;
&amp;gt; So divide the number of samples (the length) by the &lt;br&gt;
total time.&lt;br&gt;
&amp;gt; (Provided, that is, that the signal was sampled at &lt;br&gt;
regular&lt;br&gt;
&amp;gt; intervals.)&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   &quot;Prevention is the daughter of intelligence.&quot;&lt;br&gt;
&amp;gt;                                               -- Sir &lt;br&gt;
Walter Raleigh&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I'm new to a lot of this, so this question is as much for &lt;br&gt;
my own understanding as it is for the original poster.&lt;br&gt;
&lt;br&gt;
Wouldn't this depend on the 'type' of frequency they are &lt;br&gt;
looking for?  Taking the number of samples and dividing by &lt;br&gt;
the total time would give them the sampling frequency, but &lt;br&gt;
not the frequency of the analog signal that was sampled.  &lt;br&gt;
For instance, you can have a 1 Hz signal that is sampled &lt;br&gt;
at 1 MHz.  (# of samples) / (total time) would equal 1 &lt;br&gt;
MHz, but that isn't the frequency of the signal, which is &lt;br&gt;
1 Hz.&lt;br&gt;
&lt;br&gt;
Does that make any sense or am I totally off-base here?</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 13:25:17 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437874</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g38daq$671$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Bryan  &amp;lt;bdg146.removeThis@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in &lt;br&gt;
&amp;gt;message &amp;lt;g387sh$48v$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; Standard definition of frequency: samples per second.&lt;br&gt;
&lt;br&gt;
&amp;gt;Wouldn't this depend on the 'type' of frequency they are &lt;br&gt;
&amp;gt;looking for?  Taking the number of samples and dividing by &lt;br&gt;
&amp;gt;the total time would give them the sampling frequency, but &lt;br&gt;
&amp;gt;not the frequency of the analog signal that was sampled.  &lt;br&gt;
&lt;br&gt;
True.&lt;br&gt;
&lt;br&gt;
&amp;gt;For instance, you can have a 1 Hz signal that is sampled &lt;br&gt;
&amp;gt;at 1 MHz.  (# of samples) / (total time) would equal 1 &lt;br&gt;
&amp;gt;MHz, but that isn't the frequency of the signal, which is &lt;br&gt;
&amp;gt;1 Hz.&lt;br&gt;
&lt;br&gt;
&amp;gt;Does that make any sense or am I totally off-base here?&lt;br&gt;
&lt;br&gt;
No, you are correct, but it should be kept in mind that&lt;br&gt;
when an analog signal is sampled, there will *always* be&lt;br&gt;
multiple frequencies involved, so one would not talk about&lt;br&gt;
&quot;the frequency&quot; (which presumes there is only a single frequency.)&lt;br&gt;
&lt;br&gt;
No matter how pure the analog frequency is, sampling it at any&lt;br&gt;
finite sample rate with any finite number of bits per sample&lt;br&gt;
will -necessarily- quantize the signal, converting it into&lt;br&gt;
a finite sequence of square waves. When you fft the signal,&lt;br&gt;
you can always see the effect of the square wave approximation.&lt;br&gt;
The purer the original tone and the lower the noise and the more&lt;br&gt;
accurate (bits per sample) you get the readings, the less noticable&lt;br&gt;
will be the affect on the fft compared to the ideal fft.&lt;br&gt;
&lt;br&gt;
Usually the primary visible artifact in the fft of the discretized&lt;br&gt;
signal will be a phase shift, but there will also be infinite&lt;br&gt;
harmonics (as high up as the sampling frequency can distinguish&lt;br&gt;
between them.)&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;Ignorance has been our king... he sits unchallenged on the throne of&lt;br&gt;
&amp;nbsp;&amp;nbsp;Man. His dynasty is age-old. His right to rule is now considered&lt;br&gt;
&amp;nbsp;&amp;nbsp;legitimate. Past sages have affirmed it. They did nothing to unseat&lt;br&gt;
&amp;nbsp;&amp;nbsp;him.&quot;                                       -- Walter M Miller, Jr</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 14:00:24 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#437887</link>
      <author>Per Sundqvist</author>
      <description>&quot;Bryan &quot; &amp;lt;bdg146.removeThis@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g38daq$671$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in &lt;br&gt;
&amp;gt; message &amp;lt;g387sh$48v$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Standard definition of frequency: samples per second.&lt;br&gt;
&amp;gt; &amp;gt; So divide the number of samples (the length) by the &lt;br&gt;
&amp;gt; total time.&lt;br&gt;
&amp;gt; &amp;gt; (Provided, that is, that the signal was sampled at &lt;br&gt;
&amp;gt; regular&lt;br&gt;
&amp;gt; &amp;gt; intervals.)&lt;br&gt;
&amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt;   &quot;Prevention is the daughter of intelligence.&quot;&lt;br&gt;
&amp;gt; &amp;gt;                                               -- Sir &lt;br&gt;
&amp;gt; Walter Raleigh&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I'm new to a lot of this, so this question is as much for &lt;br&gt;
&amp;gt; my own understanding as it is for the original poster.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Wouldn't this depend on the 'type' of frequency they are &lt;br&gt;
&amp;gt; looking for?  Taking the number of samples and dividing by &lt;br&gt;
&amp;gt; the total time would give them the sampling frequency, but &lt;br&gt;
&amp;gt; not the frequency of the analog signal that was sampled.  &lt;br&gt;
&amp;gt; For instance, you can have a 1 Hz signal that is sampled &lt;br&gt;
&amp;gt; at 1 MHz.  (# of samples) / (total time) would equal 1 &lt;br&gt;
&amp;gt; MHz, but that isn't the frequency of the signal, which is &lt;br&gt;
&amp;gt; 1 Hz.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Does that make any sense or am I totally off-base here?&lt;br&gt;
&lt;br&gt;
If you use fft you would get a frequency spectra. Assuming&lt;br&gt;
that you have sampled the signal over many periods and small&lt;br&gt;
time steps you would get a sharp maximum at &quot;the frequency&quot;.&lt;br&gt;
If you only have one period, you would get other components&lt;br&gt;
of frequency. This phenomenon is similar to Heissenbergs&lt;br&gt;
uncertinity principle.&lt;br&gt;
&lt;br&gt;
Now fft is not so user-friendly, but if you look through the&lt;br&gt;
example:&lt;br&gt;
&amp;lt;a&lt;br&gt;
href=&quot;&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/fft.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/fft.html&lt;/a&gt;&quot;&amp;gt;fft-example&amp;lt;/a&amp;gt;&lt;br&gt;
&lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/fft.html)&quot;&gt;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/fft.html)&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Then, &quot;the frequency&quot; will approximately be obtained by:&lt;br&gt;
[dummy,ix]=sort(abs(Y(1:NFFT/2));&lt;br&gt;
f_max=f(ix(end)) %the dominating frequency component&lt;br&gt;
&lt;br&gt;
Good luck,&lt;br&gt;
Per</description>
    </item>
    <item>
      <pubDate>Tue, 17 Jun 2008 22:08:01 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#438006</link>
      <author>Carlos Adrian Vargas Aguilera</author>
      <description>I made a function for this kind of little problems with fft.&lt;br&gt;
If you want you can check out my function fouriertransform.m at:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13327&amp;objectType=FILE&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=13327&amp;objectType=FILE&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Saludos,&lt;br&gt;
&lt;br&gt;
Carlos Vargas</description>
    </item>
    <item>
      <pubDate>Wed, 18 Jun 2008 04:15:03 -0400</pubDate>
      <title>Re: fft, frequecy of a signal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170983#438027</link>
      <author>Miroslav Balda</author>
      <description>&quot;muzaffar &quot; &amp;lt;muzaffarbashir@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g355te$q0r$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Dear All,&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; i have a signal out put taken in micro second time domain.&lt;br&gt;
&amp;gt; How can i find out its frequency?&lt;br&gt;
&amp;gt; Kind regards.&lt;br&gt;
&amp;gt; &lt;br&gt;
Hi &lt;br&gt;
Your problem solves comletely the function sinfapm, should&lt;br&gt;
the signal be harmonic. You will find it at &lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=19902&amp;objectType=FILE&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=19902&amp;objectType=FILE&lt;/a&gt;&lt;br&gt;
Hope it helps&lt;br&gt;
&lt;br&gt;
Mira</description>
    </item>
  </channel>
</rss>

