% Add a tone with frequency f Hz and amplitude A for T seconds
% (The sampling freq is 11025 samples per second.)

function [x,Ts] = addToneAF(x,A,f,T)
fs = 11025; Ts = 1/fs; n = round(T/Ts);
t = (1:n)*Ts;
x = [x A*cos(2*pi*f*t)];

