``` function fftfreq(n::Int64, d::Float64) N = fld(n-1,2) p1 = [0:N] p2 = [-fld(n,2):-1] return [p1, p2]/(d*n) end ```
From the response on https://github.com/JuliaLang/julia/issues/7317, I understand that such a function is already implemented in the DSP.jl package, perhaps using the immutable Frequencies? I am not quite sure how to use that though, could anyone please provide a concrete example which reproduces the use of fftfreq? Tnx!
João Felipe Santos
unread,
Jul 2, 2014, 11:01:01 AM7/2/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message