Re: Converting x-axis in terms of frequency



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)
.



Relevant Pages

  • Re: Converting x-axis in terms of frequency
    ... Hey Dave ... I think I have understood the filter part, but am still unsure ... plot, where f would be my frequency axis. ... frequency resolution rather than Nyquist frequencies or sample ...
    (comp.soft-sys.matlab)
  • Re: Converting x-axis in terms of frequency
    ... I think I have understood the filter part, but am still unsure of ... plot, where f would be my frequency axis. ... by the reciprocal of the period over which your data making up ... your frequency resolution is 0.5Hz. ...
    (comp.soft-sys.matlab)
  • Re: Converting x-axis in terms of frequency
    ... I think I have understood the filter part, but am still unsure of ... plot, where f would be my frequency axis. ... frequency resolution rather than Nyquist frequencies or sample rates. ...
    (comp.soft-sys.matlab)
  • Re: Converting x-axis in terms of frequency
    ... Hey Dave ... I think I have understood the filter part, but am still unsure of ... plot, where f would be my frequency axis. ...
    (comp.soft-sys.matlab)