<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240216</link>
    <title>MATLAB Central Newsreader - Energy Density Spectrum to Time Series</title>
    <description>Feed for thread: Energy Density Spectrum to Time Series</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, 01 Dec 2008 14:11:02 -0500</pubDate>
      <title>Energy Density Spectrum to Time Series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240216#614161</link>
      <author>SmartEngineer </author>
      <description>Hi,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;I need an application for which input is the Energy Density Spectrum as a function of &quot;w&quot; and output should be a time series.If any body does have any idea or code already done and verified,You may please share.&lt;br&gt;
&lt;br&gt;
Thanks in advance.</description>
    </item>
    <item>
      <pubDate>Mon, 01 Dec 2008 14:26:02 -0500</pubDate>
      <title>Re: Energy Density Spectrum to Time Series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240216#614172</link>
      <author>David </author>
      <description>&quot;SmartEngineer&quot; &amp;lt;smartengineer@mathworks.com&amp;gt; wrote in message &amp;lt;gh0r9m$hl6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;    I need an application for which input is the Energy Density Spectrum as a function of &quot;w&quot; and output should be a time series.If any body does have any idea or code already done and verified,You may please share.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks in advance.&lt;br&gt;
&lt;br&gt;
typically you go from an amplitude and phase representation back to a time series with ifft.  but that requires both amplitude and phase to properly recreate the original wave.  if the 'energy density' is just a magnitude you could try to use ifft, but without phase information it is unlikely that it would faithfully reproduce the original waveform.  it would of course have the same spectrum magnitude, but not necessarily the the same as the original.</description>
    </item>
    <item>
      <pubDate>Tue, 02 Dec 2008 01:30:17 -0500</pubDate>
      <title>Re: Energy Density Spectrum to Time Series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240216#614345</link>
      <author>SmartEngineer </author>
      <description>&lt;br&gt;
&amp;gt; typically you go from an amplitude and phase representation back to a time series with ifft.  but that requires both amplitude and phase to properly recreate the original wave.  if the 'energy density' is just a magnitude you could try to use ifft, but without phase information it is unlikely that it would faithfully reproduce the original waveform.  it would of course have the same spectrum magnitude, but not necessarily the the same as the original.&lt;br&gt;
&lt;br&gt;
Hello David &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
1. What I have is probably a magnitude spectrum...How about using a random phase.Does it help?&lt;br&gt;
&lt;br&gt;
2. Also Can you please explain the last line &quot;...it would of course have the same spectrum magnitude, but not necessarily the the same as the original.&quot;...Im not clear what actually you mean here&lt;br&gt;
&lt;br&gt;
3. ifft of the Energy Density Function...does it directly give the time series?&lt;br&gt;
&lt;br&gt;
Your suggestions will be very helpful.Thank you.&lt;br&gt;
&lt;br&gt;
Regards</description>
    </item>
    <item>
      <pubDate>Tue, 02 Dec 2008 12:55:04 -0500</pubDate>
      <title>Re: Energy Density Spectrum to Time Series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240216#614415</link>
      <author>David </author>
      <description>&quot;SmartEngineer&quot; &amp;lt;smartengineer@mathworks.com&amp;gt; wrote in message &amp;lt;gh2339$2fc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; typically you go from an amplitude and phase representation back to a time series with ifft.  but that requires both amplitude and phase to properly recreate the original wave.  if the 'energy density' is just a magnitude you could try to use ifft, but without phase information it is unlikely that it would faithfully reproduce the original waveform.  it would of course have the same spectrum magnitude, but not necessarily the the same as the original.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hello David &lt;br&gt;
&amp;gt;    &lt;br&gt;
&amp;gt; 1. What I have is probably a magnitude spectrum...How about using a random phase.Does it help?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2. Also Can you please explain the last line &quot;...it would of course have the same spectrum magnitude, but not necessarily the the same as the original.&quot;...Im not clear what actually you mean here&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 3. ifft of the Energy Density Function...does it directly give the time series?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Your suggestions will be very helpful.Thank you.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards&lt;br&gt;
&lt;br&gt;
1. random phase is just as bad as no phase.&lt;br&gt;
2. try taking a couple simple sin functions at different frequencies, add them together and do an fft, then take just the magnitude of the results... change the phase relation and you get the same magnitudes.  do the ifft of any of the magnitudes and you will get back the same signal, but all the components will have zero phase.&lt;br&gt;
3. yes and no, it will have to be scaled for the number of points... see the fft and ifft function descriptions and related discussion in the help.  but remember, without the phase information you will never know exactly what the original time sequence looked like.  you can recreate one that will give you the same magnitude of the spectrum, but without the phase infomation it can't be an exact reproduction.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
also be careful about matlab's indexing on fft/ifft, since arrays are 1 based instead of 0 and can't have negative frequencies the results are shifted... be sure to look at fftshift/ifftshift to be sure you are getting the right results.</description>
    </item>
    <item>
      <pubDate>Wed, 03 Dec 2008 13:38:01 -0500</pubDate>
      <title>Re: Energy Density Spectrum to Time Series</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/240216#614735</link>
      <author>SmartEngineer </author>
      <description>Thanks alot...That clear things for me.So,I understand I can get a time series corresponding to the magnitude spectrum and this time series may not necessarily be same each time we execute the application,unless the phase is defined.I hope Iam right.&lt;br&gt;
&lt;br&gt;
And Thanks once again.</description>
    </item>
  </channel>
</rss>

