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)