misc signals processing things in MATLAB