Update planewave.m