Create phi.m