Change the code from extracting the calibration matrix from the last row of V to the last column of V because that is where the information is stored since Matlab SVD returns V and not V transpose.
Change the code from extracting the calibration matrix from the last row of V to the last column of V because Matlab's SVD function returns V and not V transpose