% ShowSoundData
% Listen and see a wav

close all

% Acquire the sound data and play it...
[y, rate]= wavread('Austin.wav');
sound(y, rate)

% Plot amplitude vs sample number...
plot(1:length(y), y)
axis tight
title('Austin', 'Fontsize',12)
xlabel('Sample Number', 'Fontsize',12)

% Plot amplitude vs time...
figure
n = length(y);
T = (n-1)/rate;
t = linspace(0,T,n);
plot(t, y)
axis tight
title('Austin', 'Fontsize',12)
xlabel('Time (seconds)', 'Fontsize',12)