HW5 #1

# HW5 #1 - %Engineering 6 Spring 2004 Problem 5.1%Ryan Uy...

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

Sheet1 Page 1 %Engineering 6, Spring 2004, Problem 5.1 %Ryan Uy, 2509 %Section B05, Tues. 3-4 % x1(t) = 3.4 cos(0.9*pi*t - pi/3) % x2(t) = 2.7 cos(0.5*pi*t) % angular frequency = w, frequency = f, period = T, phasor = X w1 = 0.9*pi w2 = 0.5*pi f1 = w1 / (2*pi) f2 = w2 / (2*pi) T1 = 2*pi / w1 T2 = 2*pi / w2 disp('x1(t) = 3.4cos(0.9*pi*t - pi/3)') fprintf('angular frequency = %.1f\n', w1) fprintf('frequency = %f\n', f1) fprintf('period = %f\n',T1) fprintf('phasor = 3.4e^(j*pi/3)\n\n') disp('x2(t) = 2.7cos(0.5*pi*t)') fprintf('angular frequency = %.1f\n', w2) fprintf('frequency = %f\n', f2) fprintf('period = %f\n',T2) fprintf('phasor = 2.7e^(j*0)') t1 = linspace(0,5*T1,425) t2 = linspace(0,5*T2,425) x1 = 3.4 * cos(0.9*pi*t1 - pi/3) x2 = 2.7 * cos(0.5*pi*t2) %plot graphs, figure 1, and label figure(1), plot(t1,x1,t2,x2),. .. title('Sinusoidal Signals x1(t) and x2(t)'),. .. ylabel('Amplitude'),. .. xlabel('Time (s)'),.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 01/22/2011 for the course ENG 006 taught by Professor Lagerstrom during the Spring '06 term at UC Davis.

### Page1 / 4

HW5 #1 - %Engineering 6 Spring 2004 Problem 5.1%Ryan Uy...

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

View Full Document
Ask a homework question - tutors are online