Instruction

Instruction - Amplitude Modulation radio a MATLAB...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
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=(((0-4)*f_sample+0.5):((duration-4)*f_sample-0.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 “/”
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
operator. 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
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Instruction - Amplitude Modulation radio a MATLAB...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online