Re: Converting x-axis in terms of frequency
- From: Raj <rajgerman@xxxxxxx>
- Date: Tue, 28 Feb 2006 12:15:14 -0500
Hey Dave
I think I have understood the filter part, but am still unsure of the
frequency axis. What would be the code to make it appear in frequency
terms??
E.g.
plot(f,Z), where f would be my frequency axis.
f = ???
Thanks for your help.
.
Ok regarding the frequency axis. Your frequency resolution is
defined
by the reciprocal of the period over which your data making up
spectra was taken over. If you are processing the complete 2
seconds
of data in one chunk, and not breaking it down into smaller
packets,
your frequency resolution is 0.5Hz (1/2 secs). As you have done an
fftshift, then the first location in your array is -22050Hz (half
your sampling frequency), and increments up uniformly by 0.5Hz
(thus
sample 2 will be 22049.5Hz) all the way up through 0 occurring at
sample 44100, and carrying on up to 22049.5Hz (it is always one
slot
short of reaching 22050)
- References:
- Converting x-axis in terms of frequency
- From: Raj
- Re: Converting x-axis in terms of frequency
- From: Dave Robinson
- Converting x-axis in terms of frequency
- Prev by Date: Re: profiler: most of the total time was from Other lines & overhead
- Next by Date: Re: For loops
- Previous by thread: Re: Converting x-axis in terms of frequency
- Next by thread: Chemometrics at EigenU, April 23-28, 2006 in Seattle
- Index(es):
Relevant Pages
|