P 4.6-8 Determine values of the mesh currents, i1, i2, and i3, in the circuit shown in

Figure P 4.6-8.

 

Figure P 4.6-8

 

The 2 A source means we have a supermesh with the i1 and i3 currents.  That produces the following two equations:

and

 

And the remaining mesh equation for i2 is

 

 

Rewrite into more standard form for MATLAB

 

 

 

 

Put into MATLAB and we find

 

 

MATLAB Code Follows:

 

%Program to solve PH 320 Homework Problem P.4.6-8

%version 2019-02-02 DW Donovan

 

clear all;

RR = [1 0 -1;

    (1) -(1+4) (4+1);

    -(1) (1+4+2) -(4)];

VV = [2 3 0]';

II = RR\VV;

i1 = II(1);

i2 = II(2);

i3 = II(3);

 

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

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

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

ANS

%{

ANS =

    'i1 = 3 mA'

    'i2 = 1 mA'

    'i3 = 1 mA'

%}

 

 

 

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

This page last updated on February 2, 2019