(New page: 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 t...)
 
Line 3: Line 3:
  
 
%Command used to read the wav file
 
%Command used to read the wav file
 +
 
[jpforward,rate,bits] = wavread('jpforward.wav');
 
[jpforward,rate,bits] = wavread('jpforward.wav');
  
 
% Command to use the flipud function
 
% Command to use the flipud function
 +
 
jpbackward = flipud(jpforward);  
 
jpbackward = flipud(jpforward);  
  
 
%Command to play the file backwards
 
%Command to play the file backwards
 +
 
wavplay(jpbackward,rate);
 
wavplay(jpbackward,rate);
 +
 
sound(jpbackward,rate);
 
sound(jpbackward,rate);
  

Revision as of 11:13, 5 September 2008

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');

Alumni Liaison

To all math majors: "Mathematics is a wonderfully rich subject."

Dr. Paul Garrett