Here's one way to do this. I'm showing two graphs, one with 5 Hz amplitude modulation, one with 5 kHz amplitude modulation. I've also passed the modulated signal into the sound function, so you can hear the result as well. At 5 Hz, the effect in music is known as tremolo.
samplingInterval = 1 / samplingRate;
t = 1:samplingInterval:duration;
set(gca,'ylim', [-1.2, 1.2]);
5 Hz modulation:
5 kHz modulation: