Periodogram and Spectral estimate

17 views (last 30 days)
Greg Athanasiadis
Greg Athanasiadis on 4 May 2018
Answered: Honglei Chen on 4 May 2018
I want to implelent in matlab the function
φ(ω)=50π[δ(ω-0.2*2π)+δ(ω+0.2*2π)]+12.5π[δ(ω-(0.2+1⁄(N)*2π))+δ(ω+(0,2+1⁄(Ν)*2π)]+1)
where φ(ω) is the spectrum of a sequence.
What is the value i must give to the ω?
  1 Comment
Wick
Wick on 4 May 2018
Can you please clarify? It appears to me φ is a function of ω and N. So you don't need to give ω a value, it would be part of the function call. Something like:
function phi = periodogram(omega, N)
You'd have to call the function with ω in radians but other than that, it should work for just about any ω and any N. If you want to limit yourself to integer N >=0, e.g., you'll have to add that filtering as well.
Does this answer your question or can you clarify what you're looking for?

Sign in to comment.

Answers (1)

Honglei Chen
Honglei Chen on 4 May 2018
Omega is your frequency. From the equation, it could be the angular frequency so it would be from -pi/T to pi/T where T is your sampling interval (or -pi*fs to pi*fs where fs is the sampling frequency).
HTH

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!