Create partition.m