(New page: <pre> % Monil Goklani % September 5, 2008 % ECE301 HW1 part 2 clear; clc; % first we open the original file [forward,fs,nbits]=wavread('C:\Users\MONIL\Desktop\jpforward.wav'); wavplay(f...)
 
Line 1: Line 1:
 +
== Matlab code ==
 +
 +
 
<pre>
 
<pre>
 
% Monil Goklani
 
% Monil Goklani

Revision as of 18:06, 4 September 2008

Matlab code

% Monil Goklani
% September 5, 2008
% ECE301 HW1 part 2
 
clear;
clc;
% first we open the original file

[forward,fs,nbits]=wavread('C:\Users\MONIL\Desktop\jpforward.wav');
wavplay(forward,44100);

%now we reverse the song

reverse=flipud(forward);
wavplay(reverse,44100);
wavwrite(reverse,44100,'C:\Users\MONIL\Desktop\jpreverse.wav');

%now we play the reverse version slower by reducing the sampling rate

wavplay(reverse,22050);
wavwrite(reverse,22050,'C:\Users\MONIL\Desktop\jpslowreverse.wav');

Alumni Liaison

Ph.D. on Applied Mathematics in Aug 2007. Involved on applications of image super-resolution to electron microscopy

Francisco Blanco-Silva