Question: Using Kirchhoff's rules find the the current I _ ( 2 ) Use GaussPivot.m darr script to solve this problem. function x = GaussPivot (
Using Kirchhoff's rules find the the current I
Use GaussPivot.m darr script to solve this problem. function x GaussPivotAb
GaussPivot: Gauss elimination pivoting
x GaussPivotAb: Gauss elimination with pivoting.
input:
A coefficient matrix
b right hand side vector
output:
x solution vector
mnsizeA;
if m~n errorMatrix A must be square'; end
nbn;
AugA b;
forward elimination
for k :n
partial pivoting
bigimaxabsAugk:nk;
iprik;
if ipr~k
Augkipr:Augiprk:;
end
for i k:n
factorAugikAugkk;
Augik:nbAugik:nbfactorAugkk:nb;
end
end
back substitution
xzerosn;
xnAugnnbAugnn;
for i n::
xiAuginbAugii:nxi:nAugii;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
