Thread Subject: Energy Density Spectrum to Time Series

Subject: Energy Density Spectrum to Time Series

From: SmartEngineer

Date: 1 Dec, 2008 14:11:02

Message: 1 of 5

Hi,
   I need an application for which input is the Energy Density Spectrum as a function of "w" and output should be a time series.If any body does have any idea or code already done and verified,You may please share.

Thanks in advance.

Subject: Energy Density Spectrum to Time Series

From: David

Date: 1 Dec, 2008 14:26:02

Message: 2 of 5

"SmartEngineer" <smartengineer@mathworks.com> wrote in message <gh0r9m$hl6$1@fred.mathworks.com>...
> Hi,
> I need an application for which input is the Energy Density Spectrum as a function of "w" and output should be a time series.If any body does have any idea or code already done and verified,You may please share.
>
> Thanks in advance.

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.

Subject: Energy Density Spectrum to Time Series

From: SmartEngineer

Date: 2 Dec, 2008 01:30:17

Message: 3 of 5


> 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.

Hello David
   
1. What I have is probably a magnitude spectrum...How about using a random phase.Does it help?

2. Also Can you please explain the last line "...it would of course have the same spectrum magnitude, but not necessarily the the same as the original."...Im not clear what actually you mean here

3. ifft of the Energy Density Function...does it directly give the time series?

Your suggestions will be very helpful.Thank you.

Regards

Subject: Energy Density Spectrum to Time Series

From: David

Date: 2 Dec, 2008 12:55:04

Message: 4 of 5

"SmartEngineer" <smartengineer@mathworks.com> wrote in message <gh2339$2fc$1@fred.mathworks.com>...
>
> > 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.
>
> Hello David
>
> 1. What I have is probably a magnitude spectrum...How about using a random phase.Does it help?
>
> 2. Also Can you please explain the last line "...it would of course have the same spectrum magnitude, but not necessarily the the same as the original."...Im not clear what actually you mean here
>
> 3. ifft of the Energy Density Function...does it directly give the time series?
>
> Your suggestions will be very helpful.Thank you.
>
> Regards

1. random phase is just as bad as no phase.
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.
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.


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.

Subject: Energy Density Spectrum to Time Series

From: SmartEngineer

Date: 3 Dec, 2008 13:38:01

Message: 5 of 5

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.

And Thanks once again.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
phase David 2 Dec, 2008 07:55:06
psd David 2 Dec, 2008 07:55:06
ifft David 2 Dec, 2008 07:55:06
fft David 2 Dec, 2008 07:55:06
spectrum SmartEngineer 1 Dec, 2008 09:15:04
time series SmartEngineer 1 Dec, 2008 09:15:04
energy density SmartEngineer 1 Dec, 2008 09:15:04
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com