-
Notifications
You must be signed in to change notification settings - Fork 0
/
Figure1.m
64 lines (61 loc) · 1.32 KB
/
Figure1.m
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
clear
close all
F_DBS=50;
pulse_num=40;
f=.15;
U=0;
F=.300;
D=.800;
Tsyn=1e-6;
S=DBS_profile(f,U,F,D,Tsyn,F_DBS,pulse_num);
figure(1)
p=plot(S/S(1),'.b','MarkerSize', 15)
hold on
plot(S/S(1),'color',[.5 0.5 1])
% plot([1:pulse_num;1:pulse_num], [S/S(1);zeros(1,40)],'b')
figure(2)
for f_dbs=1:200
I_inf(f_dbs)=infinity_current(f,U,F,D,Tsyn,f_dbs);
end
plot(I_inf/I_inf(1),'b','lineWidth',2)
hold on
%%
f=.05;
U=0;
F=.6;
D=.080;
S=DBS_profile(f,U,F,D,F_DBS,Tsyn,pulse_num);
figure(1)
plot(S/S(1),'.r','MarkerSize', 15)
plot(S/S(1),'color',[1 0.5 .5])
% plot([1:pulse_num;1:pulse_num], [S/S(1);zeros(1,40)],'r')
figure(2)
for f_dbs=1:200
I_inf(f_dbs)=infinity_current(f,U,F,D,Tsyn,f_dbs);
end
plot(I_inf/I_inf(1),'r','lineWidth',2)
hold on
%%
f=.95;
U=0.;
F=.010;
D=.080;
S=DBS_profile(f,U,F,D,Tsyn,F_DBS,pulse_num);
figure(1)
plot(S/S(1),'.m','MarkerSize', 15)
plot(S/S(1),'color',[1 0.5 1])
% plot([1:pulse_num;1:pulse_num], [S/S(1);zeros(1,40)],'m')
figure(2)
for f_dbs=1:200
I_inf(f_dbs)=infinity_current(f,U,F,D,Tsyn,f_dbs);
end
plot(I_inf/I_inf(1),'m','lineWidth',2)
hold on
figure(1)
xlabel('Stimulation number')
ylabel('EPSC')
title('Profile of the postsynaptic response to DBS')
figure(2)
xlabel('DBS frequency')
ylabel('Steady-state EPSC')
title('Frequency response')