Hi,
Use the followings for your wave audio file:
>>[wave,fs]=wavread('your_file_name.wav'); /* read file into memory */
>>sound(wave,fs); /* see what it sounds like */
>>t=0:1/fs
length(wave)-1)/fs; /* and get sampling frequency */
>>plot(t,wave); /* graph it – try zooming while its up…not much visible until you do*/
To plot in frequency domain add the followings:
>>n=length(wave)-1;
>>f=0:fs/n:fs;
>>wavefft=abs(fft(wave)); /* perform Fourier Transform */
>>plot(f,wavefft); /* plot Fourier Transform */