blob: 4d27b152e96656db0443210da4e47919b318789b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Finding charge and capacitance
//Example 5.1(pg 193)
clc
clear
t=0.25//time in sec
I=0.22//Current in A
V=220//voltage in V
Q=I*t//charge given to condenser
C=Q/V//capacitance of condenser
C1=C*(10^6)
printf('Charge given to condenser is %3.3f Coulombs \n',Q)
printf('Capacitance of condenser is %3.4f F',C)
printf('or %3.0f microF',C1)
|