0% found this document useful (0 votes)
21 views

Fred Mandersloot Kwakwaoa Anisi (2015131778) : Engineering Computations and Modelling

The document is a tutorial on engineering computations and modeling. It contains the description of a circuit with 6 nodes and 6 currents and provides the code to set up the matrix equation to solve for the unknown currents using nodal analysis.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Fred Mandersloot Kwakwaoa Anisi (2015131778) : Engineering Computations and Modelling

The document is a tutorial on engineering computations and modeling. It contains the description of a circuit with 6 nodes and 6 currents and provides the code to set up the matrix equation to solve for the unknown currents using nodal analysis.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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