% EE322 Example % % @ Kefu Xue, Ph.D., June 2006 % filnm=input('Enter the wave file name: ','s'); [x,fs,bits]=wavread(filnm); N=length(x); t=[0:N-1]/fs; figure;plot(t,x);axis tight;xlabel('time in second'); ylabel('Amplitude'); title(['Signal in the wave file: ' filnm]); % % end of file