sorry,i found the answer with a=30 and b=70:
t= (0: 0.001:30)';
x = sin (2 * pi * 50 * t);
sound(x,20000);
t = (30: 0.001:70)';
y_2= sin (2 * pi * 50 * t);
y=tremolo(y_2,20000);
sound(y,20000);
t = (70: 0.001:100)';
z = sin (2 * pi * 50 * t);
sound(z,20000);
but there lies the following problem:
from an audio file whose variable t does not intervene explicitly:
[y, Fs] = audioread ("audio.wav");
what is the function of Matlab who captures his time t?
thanks