Code Editor : mag_cal.m