blob: 57f32217949b99dd1eaf4688ad9f765613c12394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// 2.53
clc;
clear
R=10^6;
C=2500*10^-12;
tc=R*C;
t=2*10^-3;
d=100*10^-12;
F=0.1;
el=10^3*{d*F*[exp(-t/tc)]/C};
printf("Voltage just before t=2ms =%.2f mV",el)
el_after=10^3*{d*F*[exp(-t/tc)-1]/C};
disp(el_after,'voltage just after t=2ms (mV)')
printf("Voltage just after t=2ms =%.2f mV",el_after)
disp('when t=10ms')
t=10*10^-3;
T=2*10
e_10=10^3*{d*F*[exp((-T/tc)-1)]*{exp(-(t-T))/tc}/C}
printf("output voltage 10 ms after the application of impulse =%.0f mV",e_10)
|