Set of useful MatLab functions