(New page: ==MATLAB CODE= <pre> %I-Cheng Chen %09/05/08 %ECE301 hw1.2 </pre>)
 
(MATLAB CODE)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==MATLAB CODE=
+
==Matlab Code==
 
<pre>
 
<pre>
 
%I-Cheng Chen
 
%I-Cheng Chen
 
%09/05/08
 
%09/05/08
 
%ECE301 hw1.2
 
%ECE301 hw1.2
 +
 +
%Load up the wav file into Matlab
 +
FS=44100;                                %44100 Hz sampling rate
 +
[Y,FS,NBITS]=wavread('jpforward.wav');
 +
 +
%Forward version
 +
wavplay(Y,FS);
 +
pause(1)
 +
 +
YBACK=flipud(Y); %reverse the signal
 +
 +
%Reversed version
 +
wavplay(YBACK,FS);
 +
pause(2)
 +
 +
%Slow speed of the song
 +
FS_SLOW=FS/2;
 +
wavplay(y,FS_SLOW);
 +
pause(3)
 +
 +
%Fast speed of the song
 +
FS_FAST=FS*2;;
 +
wavplay(y,FS_FAST);
 +
  
 
</pre>
 
</pre>
 +
 +
==Message==
 +
The forward message is "Beyond the realm of death".<br>
 +
The backward message is "I took my life".

Latest revision as of 17:46, 5 September 2008

Matlab Code

%I-Cheng Chen
%09/05/08
%ECE301 hw1.2

%Load up the wav file into Matlab
FS=44100;                                 %44100 Hz sampling rate
[Y,FS,NBITS]=wavread('jpforward.wav');

%Forward version
wavplay(Y,FS);
pause(1)

YBACK=flipud(Y); %reverse the signal

%Reversed version
wavplay(YBACK,FS);
pause(2)

%Slow speed of the song
FS_SLOW=FS/2;
wavplay(y,FS_SLOW);
pause(3)

%Fast speed of the song
FS_FAST=FS*2;;
wavplay(y,FS_FAST);


Message

The forward message is "Beyond the realm of death".
The backward message is "I took my life".

Alumni Liaison

Ph.D. 2007, working on developing cool imaging technologies for digital cameras, camera phones, and video surveillance cameras.

Buyue Zhang