After extensive research I found some information hinting at my freq array
being wrong. I thought that the data spanned -F/2 to F/2. It seems that I
should only plot the first half of the fft vector? Can anyone confirm or
shed some light on this?
One other thing I thought the magnitude should be
why not try spectrum (power spectrum)
spectrum(y, log="no")
the major spike is at 0.1 and 1/0.1 = 10Hz
On Wed, Sep 16, 2009 at 12:13 PM, delic wrote:
>
> I wrote a script that I anticipating seeing a spike at 10Hz with the
> function 10* sin(2*pi*10*t).
> I can't figure out why my plots do not
I wrote a script that I anticipating seeing a spike at 10Hz with the
function 10* sin(2*pi*10*t).
I can't figure out why my plots do not show spikes at the frequencies I
expect. Am I doing something wrong or is my expectations wrong?
require(stats)
layout(matrix(c(1,2,3), 3, 1, byrow = TRUE))
3 matches
Mail list logo