
% [Y,FS,NBITS]=wavread(FILE) returns the sample rate (FS) in Hertz 
%   and the number of bits per sample (NBITS) used to encode the
%   data in the file.
clear all

[x_orginal , Fs , NBITS] = wavread('cntry.wav');
x = kron(x_orginal , [1,0]);
x = reshape(x' , 1 , []);% reshape x matrix to 1 dim column wise(linewize)%[] means it calcaulate the appropriate size
h=[0.5 1 0.5];
Y = conv(x, h);

sound( x_orginal, Fs) %original audio signal
pause(7)
sound(x,Fs) % alternate samples zero
pause(10)
sound(Y,Fs) % convolution result


subplot(211);
n = 1:50;
plot(n , x_orginal(n));
title('orginal voice');


subplot(212);
plot(n , Y(n))
title('Y');

