DSPRelated.com
Code

sinc function in scilab

Senthilkumar February 8, 2011 Coded in Scilab

The inbuilt sinc scilab not giving correct result. Check my function.

function [y]=sinc_new(x)
i=find(x==0);                                                          
x(i)= 1;      // don't need this is /0 warning is off        
y = sin(%pi*x)./(%pi*x);                                              
y(i) = 1;
endfunction