dotted",lwd = 1)
plot(f[1:length(f)/2],(mag^2)[1:length(f)/2],type="l",xlab="Frequency,
Hz",ylab="Power, Amp^2",log="xy",ylim=c(10^-6,100))
pref<-20E-6 #pa
p<-integrate(func,f[1],f[length(f)/2])
pwrDB<-10*log10(p
10 for 10* sin(2*pi*10*t),
my magnitudes are much higher.
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 show spikes at the frequencies I
> expect. Am I doing s
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