Electrical Communications Systems

Course No. ECE.09.433


Laboratory Project 1

Waveform Synthesis and Spectral Analysis

Objectives

This project has 4 parts. In Part 1, you will generate arbitrary waveforms with specified SNRs. In Part 2, you will study the differences between the Continuous Fourier Transform (CFT) and the Discrete Fourier Transform (DFT). In Part 3, you will synthesize AM and FM bandpass signals and analyze their spectra. In Part 4, you will capture and analyze the spectra of a segment of any piece of music that you like.

Software

Matlab: https://www.mathworks.com/help/pdf_doc/matlab/getstart.pdf

 

Part 1: Digital synthesis of arbitrary waveforms with specified SNR

Background

 

  • SNR in dB = 10 log10 (ss2/sn2); where ss2:signal variance, sn2: noise variance
  • Given signal, s(t), find ss2
  • Compute required sn2
  • Generate noise signal, n(t) = snN(0,1), where N(0,1) is a Normally (Gaussian) distributed random variable with Zero mean and Unit variance
  • Message signal with desired SNR, m(t) = s(t) + n(t)

Procedure Overview

Repeat experiment with various SNRs.

Example Matlab Code
 

%ECOMMS Lab Project 1 Example
%S. Mandayam, Rowan University
%This program generates a 1-second duration 
%Asharp signal (466.16 Hz) with a specified SNR

%Specify SNR
snr=10;

%Generate Asharp signal
t=[0:1/8e3:1.0]';
s = 0.5*sin(2*pi*466.16*t); 
sound(s);

%Compute signal variance
var_s = cov(s);

%Calculate required noise variance
var_noise=var_s/(10^(snr/10));

%Generate noise
n=sqrt(var_noise)*randn(length(s),1);
sound(n);

%Add signal to noise and generate message
m=s+n;
sound(m);

Part 2: Comparison between CFT and DFT (FFT)

Consider the signal shown in Figure 1:

Figure 1: Time-domain signal

Comment on your results.


Part 3: Spectral Analysis of AM and FM Signals

 

Part 4: Spectral Analysis of Music Signal

Legally, download a segment of your favorite piece of music, import into Matlab and listen. Compute its spectrum in Matlab, observe.

Click here for required lab project report format.
  

Instructor

Schedule

Textbook 

Demos

Grading 

Links

Homepage