Update GenerateChannelGain.m