Matlab analysis for a quantum tomography experiment