(New page: Category: ECE Category: ECE 301 Category: Fall Category: 2007 Category: mboutin Category: Matlab Category: Examples Category: Sound Recording sound: :<cod...) |
(No difference)
|
Latest revision as of 13:10, 18 December 2008
Recording sound:
WAVRECORD(N,FS,CH)
Records N samples at frequency FS. CH is number of channels. Use 1 for the homeworks. Returns a matrix of size N, contiaining the samples
-
WAVPLAY(Y,FS)
Plays audio stored in vector Y at a sampling rate of FS Hz.
-
Plot(Y)
Plots vector Y (useful to visualize an audio signal). Plotting at different frequencies:
-
x=y ( 1 : N : length(y) );
will create a vector x, which is the signal Y at 1/N of its original frequency. (takes every N element of y and puts in in x)