 to π in this instance.  That is not the situation here.)
 to π in this instance.  That is not the situation here.)  query on DFT plotting
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
x_mags=abs(fft(x));
 plot(x_mags);
 xlabel('DFT bins');
 ylabel('magnitude');
 %plotting the DFT(norm freq)
  num_bins=length(x_mags);
   plot([0:1/(num_bins/2 -1):1], x_mags(1:num_bins/2));
   xlabel('norm frequency (\pi rads/sample)');
   ylabel('magnitude');
so the text i bolded and underlined, why are the limits in plot in such way?
is there any specific reason?
댓글 수: 0
채택된 답변
  Star Strider
      
      
 2020년 8월 27일
        It is plotting only the first half of the fft result ‘x_mags’ from 0 to π radians.  This is the usual approach, since ‘x_mags’ is actually symmetrical, with the second half being the complex conjugate of the first half.  (There is usuallny no reason to plot both halves, unless you are using fftshift and plotting from  to π in this instance.  That is not the situation here.)
 to π in this instance.  That is not the situation here.)  
 to π in this instance.  That is not the situation here.)
 to π in this instance.  That is not the situation here.)  댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Schedule Model Components에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

