To Solve FFT Issue
1 次查看(过去 30 天)
显示 更早的评论
Due to the change in amplitude of the received signal, I am getting 2 different frequency results by FFT.
Black = 60Hz.
Red = 30Hz.
The received signal (Purple) can easily be seen to be nearly of 60Hz. (Black)
How can I solve this issue in Matlab?
2 个评论
dpb
2020-6-29
The received signal isn't fixed frequency at all...plus it's truncated which if include it in FFT will introduce all kinds of harmonics.
So, what's the perceived "issue" and what have you done, specifically (show code/results/expected result).
The signal content is what it is -- best you can do will be to not include the disruption at the end and then window...you don't have long enough time history to do very good job of estimating; then again, FFT isn't all that great a tool fro transients...it presumes stationarity.
dpb
2020-7-15
Attach a .mat file with the data set if want somebody to try to play with it...
The FFT will give a composite of the frequency content of the signal over the time -- what you have is not a pure tone; even by just casual inspection the time between beginning and first valley is ~3X as long as from the valley to the peak -- those are quite different in frequency content. Similarly, that peak to big valley is more like a 2X difference it appears.
You also have only a limited number of "cycles" of a transient so you can't use averaging to eliminate noise because
- simply not enough data to do so, and
- it wouldn't make sense anyways because it's the specific times that matter, anyways.
I think from your description that it isn't frequency you're interested in at all but transit times and that you'll probably be better off to try to find consistent form of smoothing/filtering of the waveform and use that to locate the peaks/valleys from which to estimate the transit times.
I don't think it's nearly as much the variation in magnitude of the signal that's causing issues re: FFT as it is that the signal simply isn't stationary and actually contains the frequencies you find.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!