Create linweights.m