Matlab code for sinc function

Sinc function that works like sin() or cos(), for Matlab R2020b. You can add it to your program, or save it in a file called custom_sinc.m, and then use it in other programs.


function result = custom_sinc(t)

    result = sin(t)./t

    result(t==0) = 1

end

Comentarios