DSPRelated.com
Code
Online · Live + on demand
February 9-11, 2027
Price goes up Nov 1: register now to lock in today's rate
Register Now →

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