Matlab program for fitting dark IV data