clear all, close all

y = audioread('yellowsu.wav');

y1 = y(1:10^5);
y2 = round(y1*2)/2;

% y1 = y(1000:15000);
% y2 = round(y(1000:15000)*4)/4;

figure(1)
subplot(2,1,1)
plot(y1(1000:15000))
ylabel('x(nT)')
axis([1 14000 -1 1]);
subplot(2,1,2)
plot(y2(1000:15000))
ylabel('x(n)')
axis([1 14000 -1 1]);

y3 = y1*2;

figure(2)
subplot(2,1,1)
plot(y1(1000:15000))
ylabel('x(nT)')
axis([1 14000 -1 1]);
subplot(2,1,2)
plot(y3(1000:15000))
ylabel('x_{s}(nT)')
axis([1 14000 -1 1]);

p = audioplayer(y2, 11025)
play(p)