Symmetry in DFT plot in MATLAB

%Code for DFT of a simple sine signal:

clc
clear all
close all
N=16;
n=0:N-1;
w=2*pi/N;
x=sin(w*n);
y=fft(x,N);
k=n;
subplot(2,1,1);
stem(k,abs(y));
subplot(2,1,2);
stem(k,angle(y));





No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();