P 4.5-5 Find the current i for the circuit of Figure P 4.5-5.

Hint: A short circuit can be treated as a 0-V voltage source.

 

Figure P 4.5-5

 

First Identify Mesh Currents

Write out the three Mesh equations

 

 

 

 

Put these Equations into MATLAB and we get the answers:

 

 

 

 

 

MATLAB Code Follows:

 

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

%version 2019-01-31 DW Donovan

clear all;

 

RR = [(2 + 4) (-2) (-4);

    (-2) (2 + 2) 0;

    (-4) 0 (4 + 6)];

VV = [0 -10 10]';

II = RR\VV;

 

i = II(1);

iL = II(2);

iR = II(3);

 

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

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

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

ANS

%{

ANS =

    'i = -0.29412 A'

    'iL = -2.6471 A'

    'iR = 0.88235 A'

%}

 

 

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

This page last updated on January 31, 2019