HW_4_MatLab - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...

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

View Full Document Right Arrow Icon
1 % 2 % ECE 202 - Spring 2008 - HW 4 3 % 4 % THIS PROGRAM IS RATHER TOO ADVANCED FOR STUDENTS WHO ARE 5 % USING MATLAB FOR THE FIRST TIME. 6 % THE TEMPLATE PROVIDED EARLIER IS MORE SUITABLE. 7 % NEVERTHELESS, THIS PROGRAM IS USEFUL FOR LEARNING 8 % SOME ADVANCED FEATURES OF MATLAB. 9 % 10 % This program evaluates the average power delivered to 11 % a load ZL = RL + j XL from a source circuit. 12 % The source circuit is represented by: 13 % (1) A Thevenin equivalent voltage VT, and 14 % (2) A Thevenin equivalent impedance ZT = RT + j XT. 15 % 16 17 % It is a good practice to start a MatLab program by clearing/closing 18 % any variables, functions, and figures that may have been used 19 % by previous runs of this program or other programs 20 clear all 21 close all 22 23 %Thevenin voltage magnitude of the source 24 VT = 25 26 %Thevenin resistance and reactance of the source 27 RT = 28 XT = 29 30 % 31 % There are several MatLab methods that can be used to 32 % evaluate the average power P. 33 % Here, we first treat the average power P as 34 % 35 %
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.

This note was uploaded on 07/25/2008 for the course ECE 202 taught by Professor Radha during the Spring '08 term at Michigan State University.

Page1 / 3

HW_4_MatLab - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18...

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