Discrete signal and its MATLAB implementation