how to find frequency of a sin wave.
10 次查看(过去 30 天)
显示 更早的评论
i have a sin wave. i want to find its frequency. or ( if the wave is composed with different frequencies how to find all frequencies)
(actually i plotted this waveform from an array)
here you can see waveform. please ignore the axis values.
please tell me any idea, that how can i find the frequency of this waveform.
0 个评论
回答(2 个)
Wayne King
2011-12-20
Hi Naga, you can use fft(). If you have the Signal Processing Toolbox, the easiest thing to use is spectrum.periodogram. With either fft() or spectrum.periodogram, you have to know the sampling frequency. What is the sampling frequency. You have a vector plotted of length 100, but what is the time interval between those samples?
3 个评论
Wayne King
2011-12-20
what do you mean the time interval varies, are you saying the data are not sampled at equal intervals of time. The data samples are not evenly spaced? Or are you saying, the data samples are evenly spaced, you just don't always know what the interval is? They are very different things.
Philippus van der Merwe
2022-9-22
I have the same kind of problem. I have a set of measurement data from a sensor. The sensor has a given sampling rate, but the time stamps of the data readings (reported by the sensor) are not evenly spaced. This could be what he means by varying time intervals.
In my case, this makes it difficult to know the the frequency values of of your FFT readings.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!