clc; clear;
%Command used to read the wav file
[jpforward,rate,bits] = wavread('jpforward.wav');
% Command to use the flipud function
jpbackward = flipud(jpforward);
%Command to play the file backwards
wavplay(jpbackward,rate);
sound(jpbackward,rate);
%Command to save the wav file
wavwrite(jpbackward,rate,bits,jpbackward.wav');