function[] = output(index)

% Reading the wavefile for all the notes
y = wavread('5.wav');
y1 = wavread('10.wav');
y2 = wavread('20.wav');
y3 = wavread('50.wav');
y4 = wavread('100.wav');
y5 = wavread('notrecognized.wav');

% Displaying as well as have a voiseoutput
if index == 1
    disp('note5');
    wavplay(y,21025)
elseif index == 2
    disp('note10');    
    wavplay(y1,21025)
elseif index == 3
    disp('note20');  
    wavplay(y2,21025)
elseif index == 4 
    disp('note50');
    wavplay(y3,21025)
elseif index == 5
    disp('note100');
    wavplay(y4,21025)
else
    disp('not recognised');
    wavplay(y5,21025)
end