Some MATLAB function which make the life easier :)