Creation of calibration matrix