How to retain a Complex Dirichlet?

1 view (last 30 days)
Wei-Min Chen
Wei-Min Chen on 12 Mar 2019
Commented: Wei-Min Chen on 12 Mar 2019
Hi,
I'd like to construct a periodic sinc dictionary. And the periodic sinc function in MatLab is "Dirichlet function".
But it seems that the function in the link is only real part.
How can I retain a complex dirichlet function?
Thanks a lot !
  2 Comments
Torsten
Torsten on 12 Mar 2019
So you want x to be complex-valued in
d = diric(x,n)
?
Wei-Min Chen
Wei-Min Chen on 12 Mar 2019
Yes. This is my code, and I am checking if this make sense.
I multiply diric by a phase term exp(1i*2*pi*x).
-60~60 is field of view.
x = linspace(-1,1,1024);
N = 10;
dict = [];
for i=-60:1:60
yd = exp(1i*2*pi*x).*abs(diric((x-i/60)*pi,N));
dict = [dict;yd];
end

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!