blob: 13348879a11e6448f81f682c188f912697a326de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//Example 1_20
clc;
clear;
close;
format('v',5);
//given data :
V=20;//V
I=2;//A
V3=6;//V
R1=2;//ohm
R2=4;//ohm
R3=8;//ohm
//Considering current source only, Make Voltage source short circuit
I1dash=I*R1/(R1+R3);//A
//Considering Voltage source only, Make Current source opent circuit
I1dash2=V/(R1+R3);//A
I=I1dash2-I1dash;//A
disp(I,"Current through 8 ohm resistor from A to B(A)");
|