-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathexp2syn.m
More file actions
31 lines (26 loc) · 818 Bytes
/
exp2syn.m
File metadata and controls
31 lines (26 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function Gz = exp2syn(dt,tau1,tau2)
t=(0:dt:20);
% %A=exp(-t/tau1);
% %B=exp(-t/tau2);
% %figure;plot(t,A,'r',t,B,'g');
% tau1 = 0.002;tau2 = 0.02;
% tp = (tau1*tau2)/(tau2-tau1)*log(tau2/tau1);
% factor= -exp(-tp/tau1)+ exp(-tp/tau2);
% f=1/factor;
% Gx= f*(exp(-t/tau2) - exp(-t/tau1));
%
% tau1 = 0.02;tau2 = 0.20;
% tp = (tau1*tau2)/(tau2-tau1)*log(tau2/tau1);
% factor= -exp(-tp/tau1)+ exp(-tp/tau2);
% f=1/factor;
% Gy=f*(exp(-t/tau2) - exp(-t/tau1));
%
%
%tau1 = 0.2;tau2 = 2.0;
tp = (tau1*tau2)/(tau2-tau1)*log(tau2/tau1);
factor= -exp(-tp/tau1)+ exp(-tp/tau2);
f=1/factor;
Gz=f*(exp(-t/tau2) - exp(-t/tau1));
% figure;plot(t,Gz,'m');
% xlabel('Time (m-sec)');ylabel('Normalized Conductance (nS)');
%legend('tau1=0.002;tau2=0.02','tau1=0.02;tau2=0.2','tau1=0.2;tau2=2.0');