# Questão 3

Aug 5th, 2022
901
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. clc; clear all; close all;
2. Vl = 3;
3. Ic = 10e-3;
4. Vcc = 9;
5. b = 200;
6. Vbe = 0.7;
7.
8.
9. printf("a -> Vce = 3\n");
10. Vce = 3;
11. Vrc = Vcc - Vl - Vce;
12. printf("Vrc = %.1f V\n", Vrc);
13. Rc = Vrc / Ic;
14. printf("-> Rc = %.1f Ohms\n", Rc);
15. Ib = Ic / b;
16. printf("Ib = %.2e A (%f A) \n", Ib, Ib);
17. Vrb = Vcc - Vbe;
18. printf("Vrb = %.1f V\n", Vrb);
19. Rb = Vrb / Ib;
20. printf("-> Rb = %.1f Ohms\n", Rb);
21. printf("---\n");
22.
23. printf("b -> Vce = 0\n");
24. Vce = 0;
25. Vrc = Vcc - Vl - Vce;
26. printf("Vrc = %.1f V\n", Vrc);
27. Rc = Vrc / Ic;
28. printf("-> Rc = %.1f Ohms\n", Rc);
29. Ib = Ic / b;
30. printf("Ib = %.2e A (%f A) \n", Ib, Ib);
31. Vrb = Vcc - Vbe;
32. printf("Vrb = %.1f V\n", Vrb);
33. Rb = Vrb / Ib;
34. printf("-> Rb = %.1f Ohms\n", Rb);
35. printf("---\n");
36.
37. printf("b -> b = 2\n");
38. Vce = 0;
39. b = 2;
40. Vrc = Vcc - Vl - Vce;
41. printf("Vrc = %.1f V\n", Vrc);
42. Rc = Vrc / Ic;
43. printf("-> Rc = %.1f Ohms\n", Rc);
44. Ib = Ic / b;
45. printf("Ib = %.2e A (%f A) \n", Ib, Ib);
46. Vrb = Vcc - Vbe;
47. printf("Vrb = %.1f V\n", Vrb);
48. Rb = Vrb / Ib;
49. printf("-> Rb = %.1f Ohms\n", Rb);
50. printf("---\n");
51.