Vary Attenuation of Signal During Simulation
Use the Variable Attenuator block to attenuate a 20 dB constant signal. Use the Repeating Sequence Stair block as a Simulink control signal to vary the attenuation of the signal. In this model, the signal attenuation varies between 5 and 10 dB during simulation. To see the variation in attenuation, open and run the model.