ECE 301 -- 4-7 Project

ECE 301 -- 4-7 Project - clear deltat = 10e-8; T = 1e-6; A...

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

View Full Document Right Arrow Icon
clear deltat = 10e-8; T = 1e-6; A = 3; f_c = 10e6; PulsePoints = round(T/deltat); uoft = ones(1,PulsePoints); boft = A*uoft; a = [1 -1 1 1 1 -1 1 -1]; numbits = length(a); goft = [a(1)*boft]; for n = 2:numbits goft = [goft, a(n)*boft]; end totpts = length(goft); tfinal = (totpts-1)*deltat; tsecs = 0:deltat:tfinal; subplot(311) plot(tsecs,goft), grid axis([-10*deltat tfinal+10*deltat -7 7]) xlabel( 't' ), ylabel( 'g(t)' ) title( 'Baseband Analog g(t) Signal' ) xoft = goft.*cos(2*pi*f_c*tsecs); roft = xoft; doft = roft.*cos(2*pi*f_c*tsecs); subplot(312) plot(tsecs,doft), grid
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/28/2012 for the course ECE 301 taught by Professor Hoozturk during the Fall '08 term at N.C. State.

Page1 / 2

ECE 301 -- 4-7 Project - clear deltat = 10e-8; T = 1e-6; A...

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

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