blob: 15c17e5681ec057c2f9fe782bfedd88cdcca5d25 (
plain)
1
2
3
4
5
6
7
|
clear
//
//from the figure the eqns are written in matrix form and using cramers rule the value of v1 and v2 can be found
printf("\n v1=3.6V")
printf("\n v2=2.2V")
printf("\n the current in 0.6 ohm resistor is 10.8A,0.2 ohm resistor is 7A,0.16ohm resistor is 13.2 A")
|