function part1(original, new) y=wavread(original); % Reads in the stereo wavfile ym=y(:,1); % Takes channel 1 audio x=wavread(new); % Reads in the stereo wavfile zm=z(:,1); % Takes channel 1 audio % Number of samples N=length(zm); % Calculate Error error=(1/N)*sqrt(sum((ym(1:N)-zm(1:N)).^2)) figure(1) %original wav file plot(abs(ym),'b'); hold on; %new wav file plot(abs(zm),'r'); hold off; title('red: new, blue: original');