blob: 0c6573611269653b6c5114131fe7afda3787f05d (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Ex2_11
clc
C = 10*10^-6
delta_V = 100
delta_t = 10
ic = C*delta_V/delta_t
disp("C = "+string(C)+"F")//capacitance
disp("delta_V = "+string(delta_V)+"V")//change in voltage
disp("delta_t = "+string(delta_t)+"sec")//change in time
disp("ic = C*(delta delta_V/delta_t) = "+string(ic)+"A")//calculation for instantaneous current
|