Added Matlab analysis for mag field scan