You are on page 1of 2

Fred Mandersloot Kwakwaoa

Anisi (2015131778)

Table of Contents
* Engineering Computations and Modelling (EEB 604) Tutorial 06 * ........................................... 1
Question 01: Part (a)/ Part (b) ............................................................................................... 1

* Engineering Computations and Modelling


(EEB 604) Tutorial 06 *
Created on 05/09/2019 by Fred M K Anisi

% Question 1: * _Nodal Analysis in Circuits_ *


close all;
clear;
clc;

Question 01: Part (a)/ Part (b)


R1 = 1000;
R2 = 5000;
R3 = 2000;
R4 = 1000;
R5 = 5000;
v = 100;

% Matrix A

A = [0 -R2 0 -R4 0 0;...


R1 -R2 R3 0 0 0;...
0 0 -R3 -R4 R5 0;...
1 1 0 0 0 1;...
0 1 1 -1 0 0;...
1 0 1 0 1 0;...
0 0 0 1 1 -1];

% Vector b

b = [-v; 0; 0; 0; 0; 0; 0];
currents = A\b;
disp('The values of Currents i1 - i6 are = ');
disp(currents);

The values of Currents i1 - i6 are =


-0.1188

1
Fred Mandersloot Kwak-
waoa Anisi (2015131778)

0.0050
0.0719
0.0749
0.0438
0.1162

Published with MATLAB® R2019a

You might also like