Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

DSB-SC Modulation and Demodulation Script: Filtering and Analysis of Demodulated Signal - , Assignments of Electrical and Electronics Engineering

A matlab script for solving computer problem 2 in ecgr 4123/5191, focusing on dsb-sc (double side band suppressed carrier) modulation and demodulation. The script generates and analyzes the message signal, modulated signal, demodulated signal prior to low pass filter (lpf), and the received signal. The document also includes the frequency response of the lpf filter.

Typology: Assignments

Pre 2010

Uploaded on 07/28/2009

koofers-user-shw-1
koofers-user-shw-1 🇺🇸

10 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download DSB-SC Modulation and Demodulation Script: Filtering and Analysis of Demodulated Signal - and more Assignments Electrical and Electronics Engineering in PDF only on Docsity! ECGR 4123/5191 Computer Problem #2 3) Partial Solution to Problem 3 Script File Used for the entire Problem % Script File - DSB-SC Modulation and Demodulation % Information signal is a Rectangular Pulse with 1st Null Bandwidth of % 2 rad/s. The carrier frequency, wo = 2*pi*100 rad/s. % Set sampling frequency for time domain. This sampling frequency is used % consistently throughtout the entire example. Sampling frequency needs % to be at leat twice the highest frequency. % % Highest frequency 2*wo + 8*2. The 8*2 rad/s term is required to take % into account the high frequency terms in our information signal. % To obtain "better" plots the sampling frequency is sellected to be 20 % times the carrier frequency. close all clear all wo=2*pi*100; fs = 20*wo; a0 = 2*pi*6; % Select -3dB down point of filter to be at 6 Hz h = exp(-a0.*[0:1/fs:1]); % Note there are better approaches to %designing this filter, but this method is straight forward freqz(h,1,2^15,fs) % Plot of frequency response of the filter t=-10:1/fs:10; % time variable x=((t+1)>0) - ((t-1)>0); % rect information signal y = x.* cos(wo*t); % Modulated signal z = y.* cos(wo*t); % Demodulated signal prior to LPF xhat = filter(h,1,z); %Demodulated signal dtft(x,fs,'Message signal'); dtft(y,fs,'Modeulated signal'); dtft(z,fs,'Demodulated signal prior to LPF'); dtft(xhat,fs,'Received signal'); plot(t,x,'r', 'linewidth', 2) hold on plot(t,xhat/sum(h.^2),'--')
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved