Create weight.m