frequency to time domain conversion
이전 댓글 표시
hi,
I have some data in text file, I want to read that data and convert the data from frequency to time domain. the data is like this
Frequency [Hz] Current(A)
1.000000000000E+07 2.500234034000E-06
1.018679245283E+07 2.546990258195E-06
1.074716981132E+07 2.687277097052E-06
1.149433962264E+07 2.874370653929E-06
1.242830188679E+07 3.108313963777E-06
1.336226415094E+07 3.342348535650E-06
I already tried the Wizard, load, fopen , fread, textscan,
suggestion please
댓글 수: 5
dpb
2014년 5월 13일
... tried the Wizard, load, fopen , fread, textscan,...
And the problem specifically was/is??? Looks like a straightforward textread or import solution should work.
fn='yourfilename.txt';
[fr,cur]=textread(fn,'%f %f','headerlines',1); % separate variables
or
data=textread(fn,'','headerlines',1); % single array
Muhammad Ali Qadar
2014년 5월 13일
dpb
2014년 5월 13일
Presuming you got frequency data from either a fft on a recorded time trace or downloaded from a frequency analyzer, your only way to reconstruct a time history is via the inverse transform. But, to do that and regenerate the actual time history you need the complex conjugate of the actual transform, not the PSD.
Walter gives a short tutorial here--
Muhammad Ali Qadar
2014년 5월 15일
dpb
2014년 5월 15일
Any text on the FFT or tutorial on the internet. The problem is that if you have only the PSD of a real time signal you've lost the underlying phase data and therefore have no way of regenerating the original time history any longer. You just don't have enough information left on hand.
The math is such that to generate a real output from the IFFT the input must be complex conjugate symmetric and you have no imaginary component from which to build a meaningful conjugate as the PSD is the amplitude-only result of the FFT; the phase has been mushed out.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!