function flatSound % written by CPF Nsecs = 1; %number of seconds delta_t = 1/4096; t = 0:delta_t:(Nsecs-delta_t); Fs=4096; % sampling frequency freq = 400 ; % frequency of the sound A = 0.6;% amplitud of the sound (between 1 and -1 so it can be played by 'sound' function of Matlab y = A*sin(2*pi*freq*t); % build the intensities over time sound(y,Fs) end