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

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

View Full Document Right Arrow Icon
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)'),.
Background image of page 1

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

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

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 Right Arrow Icon
Ask a homework question - tutors are online