Periodogram and Spectral estimate
17 views (last 30 days)
Show older comments
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
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?
Answers (1)
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
0 Comments
See Also
Categories
Find more on Spectral Estimation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!