LTCI code of Matlab