CS Assignment 3
CS Assignment 3
Assignment 3
Using MATLAB solve the following circuit analysis problems:
a) Use the mesh analysis to find the current flowing through the resistor RB of fig.3(a) . In
addition, find the power supplied by the 10-volt voltage source.
b) In fig. 3(b), as RL varies from 0 to 50KΩ, plot the power dissipated by the load. Verify
that the maximum power dissipation by the load occurs when RL is 10 KΩ
c) For the circuit shown in fig.3(c), find the nodal voltages V 1, V 2 , and V3 .
Fig.3(a)
1
Circuit Simulation Laboratory
Fig.3(b)
Fig.3(c)
Part A).
Fig.3(a)
10 = 10 * ( I1 - I2 ) + 30 * ( I2- I3 )
2
Circuit Simulation Laboratory
0 = 15*I2 + 5 * ( I2 - I3 ) + 10 * ( I2 – I1 )
4 -1 -3 I1 1
-2 6 -1 I2 = 0
-6 -1 13 I3 0
Hence, V = Z*I
I= Current matrix
Z= Impedance matrix
3
Circuit Simulation Laboratory
%Use Mesh analysis to find current in resistor Rb. Also find power
supplied by %voltage source.
Part B).
The maximum power transfer theorem states that, to obtain maximum external power from a
source with a finite internal resistance, the resistance of the load must equal the resistance of the
source as viewed from its output terminals.
Fig.3(b)
4
Circuit Simulation Laboratory
plot(R,P,'*');
title('Maximum Power Transfer Theorem');
xlabel('Load in Ohms');
ylabel('Power in Watts');
[val,ind]=max(P);
Maxpower= val %To display maximum power dissipated by load
Matchresistor= R(ind) %To display value of Rl for which maximum
%power is dissipated i.e. Rs=Rl
Output:
5
Circuit Simulation Laboratory
Part C).
6
Circuit Simulation Laboratory
Fig.3(c)
7
Circuit Simulation Laboratory
Hence, I = Y*V
I= Current matrix
Y= Admittance matrix
Output:
8
Circuit Simulation Laboratory
9
Circuit Simulation Laboratory
INFORMATION:
Length:
INV:
10
Circuit Simulation Laboratory
Max:
Conclusion:-
Using MATLAB we have solved the circuit analysis problems. We have calculated the value of
voltages and current by using Mesh and nodal analysis respectively. For given circuit the load
resistance for which the maximum power will be delivered to load is found out and the graph of
maximum power dissipated by the load is plotted.
11