Create deterp.m