How to obtain IFFT for a set of experimental data in a text file?

2 vues (au cours des 30 derniers jours)
ridma kaveendra
ridma kaveendra le 12 Fév 2020
Commenté : ridma kaveendra le 14 Fév 2020
I have the data taken from spectrum analyzer in a text file. (This is a frequency domain signal) I want to get the time domain signal of this signal using IFFT. Can anyone explain me the procedure to get the time domain signal? I have attached the text file with this.
  9 commentaires
ridma kaveendra
ridma kaveendra le 13 Fév 2020
That code output is not a sine wave, does that mean phase can not be zero?
Walter Roberson
Walter Roberson le 13 Fév 2020
Padding with zeros is a convolution that often ends up creating a sync . Padding with zeros was needed because of the missing frequencies.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 13 Fév 2020
You can zero-pad the 900 entries before x = 1500000000 . You can then take the complex conjugate of the augmented y, and flipud() it, append the two, and prefix with a zero.
Now you would have a two-sided complex conjugate that you can use ifft() on to get the time domain signal.
The 1666666 sampling interval affects the labeling of the the time domain signals, but not their relative value.
If your frequency bins were not all 1666666 or 1666667 apart, then you would need to use other approaches.
  7 commentaires
Walter Roberson
Walter Roberson le 13 Fév 2020
At line 602 the file suddenly shifts from 3 column to 1 column. We do not know how to deal with that?
ridma kaveendra
ridma kaveendra le 14 Fév 2020
sorry that is my mistake. here is the new file. Still output is not a sine wave as above image

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by