Matlab-based Utilities for x-ray data