more work in VaryingPulseDuration.m