Amplitude Modulation radio  a MATLAB
experiment for Purdue ECE 301, by Prof. Chih
Chun Wang.
Preparation
1. Download the different wav files
x1.wav
(Save it as “x1.wav”.)
2. Download the
ece301conv.m
file.
3. Open MATLAB and change the directory to where you have saved the previous files.
4. Enter the following commands
duration=8;
f_sample=44100;
t=(((04)*f_sample+0.5):((duration4)*f_sample0.5))/f_sample;
5. Load x1(t) by the commands
[x1, f_sample, N]=wavread('x1');
x1=x1';
(Now you can look at what x1(t) looks like by “plot(t, x1);”
Or you can listen to x1 by “wavplay(x1,f_sample);”)
Basic operations:
1. If you want to construct a sin wave with frequency 440Hz, use the following commands:
f=440;
s=sin(2*pi*f*t);
If you want to construct a sinc function sinc(t), use the command:
sc=sin(pi*t)./(pi*t);
Note: every time you do vector multiplication or division, you need to add a period “.” before the “*” and “/”
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Documentoperator.
2. The convolution of two signals x1 and x2 can be achieved by the following command
y=ece301conv(x1,x2);
Requirement:
You are asked to plot several figures. Print all the figures for each objective. Your HW score
This is the end of the preview. Sign up
to
access the rest of the document.
 Fall '06
 V."Ragu"Balakrishnan
 Lowpass filter, sinc function, dial tone

Click to edit the document details