This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ECE257 Exercise 3 Date: 2/11/08, Monday, week 6 Due Date: 2/25/08, week 8 Total Points: 49 points 9. (15%) Write MATLAB code to calculate and plot the voltage C V and C V V versus frequency f for the following circuit. The input voltage is 10 V V = ( ( ) 10sin(2 ) v t ft = ) At the beginning you need to enter R, L, and C values. Plot the voltages C V for the following values. 100 R = , 100 L mH = , 4 C F = ( 3 6 1 10 , 1 10 m -- = = ) Find the maximum values of C V and print it with frequency. Necessary Equations: 2 f = , 1 ( ) Z R j L C = +- , V I Z = , 1 ( ) C V I j C = Answers for Problem 9 Please check the m-file in Problem9 folder. 10. (10%) Tower of Hanoi is a famous problem in C programming that computes the movement needed to move n disks from peg 1 to peg 3 using peg 2 as an intermediate storage. The rule is that smaller disks must always stay on top of bigger disks and you are moving only one...
View Full Document