How can i plot frequency response from 25000 time domain Data?
Show older comments
Hello every body, I have near 25000 time domain data, they are from a idustrial plant, I have both input and output data. I want plot frequency response by using this time domain data, please help me how it is possible? Thanks alot.
6 Comments
dpb
on 19 Mar 2015
What's your end objective? When one has to ask the question, I suggest need some background first...
A list of references using Matlab for illustrative purposes is at System Identification Bookss; it appears the 2nd and 3rd would likely be apropos to your query as likely are several others...
mostafa
on 19 Mar 2015
If you've already sampled at 25 second intervals, you have no valid frequency content above 0.02 Hz by the Nyquist sampling theorem (you do know what that is, at least, I hope?) The problem in determining a "best" sampling time is that you've got to ensure you've sample at a rate at least greater than twice the maximum frequency content possibly of interest. And, of course, you need to ensure that there isn't frequency content above that in the sampled data that is being aliased into that sampling range and that if so, is absolutely not removable by any means whatsoever once the data have been sampled.
I'm reluctant to suggest you just blindly apply FFT techniques to these data until you have a better understanding of the problems; the consequences of doing so are potentially too serious.
Is this an academic or commercial exercise? If academic consult your advisor, if commercial is there some access to consultant in the area you can confer with? This is a Matlab programming forum, not a consulting service, unfortunately.
mostafa
on 20 Mar 2015
I think you're barking up the wrong tree first here; you need to learn something about signal processing and data collection basics first to ensure your data have any meaning before just applying tools. Perhaps the reason the results aren't what you expect is that the data aren't any good...
But, to see what frequency content is contained in the sampled data, there's a very good, concise example of an amplitude spectrum computed via the fft at
doc fft
The Signal Processing toolbox also has the function tfestimate for transfer function estimation and the spectrum function which has multitude of options for estimating spectra.
Again, however, unless there's something actually in the dataset you've collected, none of these can fix corrupted data obtained without adequate protection during that process, whatever it was.
mostafa
on 21 Mar 2015
Answers (1)
Image Analyst
on 20 Mar 2015
0 votes
Look up pwelch() in the Signal Processing Toolbox: http://www.mathworks.com/products/signal/features.html#spectral-analysis
Categories
Find more on Bartlett in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!