matlab: fix training setEmissionWave