DownRG

Sinc Function

정의:


특성: (표준화한 sinc 함수에서) x가 0을 제외한 정수값일 때 0을 지남. x가 0일 때는 1값을 가짐.
        x가 0일 때는 l’Hospital’s 정리를 이용하여 값을 구할 수 있음. 면적의 합은 1.

기본함수:(matlab 내장)
function y=sinc(x)
  i=find(x==0); % x값이 0일 때의 index 번호를 i에 저장
  x(i)= 1;        % From LS: don’t need this is /0 warning is off
  y = sin(pi*x)./(pi*x);
  y(i) = 1;       % x가 0일 때 y값은 1로 지정 by l’Hospital’s Theorem

그래프:
[code matlab]
x=[-5:0.1:5];y=sinc(x);y2=sinc(x).^2;
xl=[-1,0,1];yl=[0,1,0];
hold on
plot(x,y), plot(x,y2,’r’), grid on, axis([-5,5,-0.5,1.5])
line(xl,yl,’color’,’k’,’linestyle’,’-.’)
title(‘Normalized Sinc Function Graph’)
legend(‘sinc(x)’,’sinc^2(x)’)
hold off
[/code]
* 참고: http://en.wikipedia.org/wiki/Sinc_function

Exit mobile version