MATLAB functions for daily work!