Some matlab helper functions that I use across projects.