Create dx.m