P 4.5-1 Determine the mesh currents, i1, i2, and i3, for the circuit shown in Figure P 4.5-1.

Answers: i1 = 3 A, i2 = 2 A, and i3 = 4 A

Figure P 4.5-1

 

Write out the three mesh equations

 

 

 

 

Rewrite in standard form so they can put into MATLAB for solution

 

 

 

 

 

MATLAB Code Follows:

 

%Program to solve PH 320 Homework Problem P.4.5-1

%version 2019-01-30 DW Donovan

clear all;

 

 

 

RR = [(2 + 3 + 9) (-3) (-9);

    (-3) (3 + 6) (-6);

    (-9) (-6) (6 + 9)];

VV = [0 -15 21]';

II = RR\VV;

 

i1 = II(1);

i2 = II(2);

i3 = II(3);

 

ANS = {['i1 = ' num2str(i1) ' A'];

    ['i2 = ' num2str(i2) ' A'];

    ['i3 = ' num2str(i3) ' A']};

 

ANS

 

%{

   ANS =

    'i1 = 3 A'

    'i2 = 2 A'

    'i3 = 4 A'

    %}

 

 

Please send any comments or questions about this page to ddonovan@nmu.edu

This page last updated on January 30, 2019