-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfig4A.hoc
86 lines (74 loc) · 1.58 KB
/
fig4A.hoc
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
xopen("ModelTypeI.hoc")
xopen("./createNewSyn.hoc")
dt = 0.1
steps_per_ms = 1/dt
flag = 1
proc NregNsyn() {
freq = $1
if (flag == 2) {
xopen("./createNewSyn.hoc")
flag = 1
}
xopen("./NregNsyn.hoc")
}
proc Nregsyn() {
freq = $1
if (flag == 1) {
xopen("./createNewSyn2.hoc")
flag = 2
}
xopen("./Nregsyn.hoc")
}
proc regNsyn() {
freq = $1
if (flag == 2) {
xopen("./createNewSyn.hoc")
flag = 1
}
xopen("./regNsyn.hoc")
}
proc regsyn() {
freq = $1
if (flag == 2) {
xopen("./createNewSyn.hoc")
flag = 1
}
xopen("./exec.hoc")
}
objref b
b = new VBox()
b.intercept(1)
objref g
g = new Graph(0)
g.view(0, -80, tstop, 120, 50, 200, 300, 200)
addplot(g, 0) //attach to standard run system
g.size(0, tstop, -80, 40)
g.addvar("axon", "axon[10].v(.5)")
xpanel("", 1)
xmenu("irreg & asyn")
xbutton("1 HZ", "NregNsyn(1)")
xbutton("4 HZ", "NregNsyn(4)")
xbutton("7 HZ", "NregNsyn(7)")
xbutton("10 HZ", "NregNsyn(10)")
xmenu()
xmenu("irreg & syn")
xbutton("1 HZ", "Nregsyn(1)")
xbutton("4 HZ", "Nregsyn(4)")
xbutton("7 HZ", "Nregsyn(7)")
xbutton("10 HZ", "Nregsyn(10)")
xmenu()
xmenu("regular & asyn")
xbutton("1 HZ", "regNsyn(1)")
xbutton("4 HZ", "regNsyn(4)")
xbutton("7 HZ", "regNsyn(7)")
xbutton("10 HZ", "regNsyn(10)")
xmenu()
xmenu("regular & syn")
xbutton("1 HZ", "regsyn(1)")
xbutton("4 HZ", "regsyn(4)")
xbutton("7 HZ", "regsyn(7)")
xbutton("10 HZ", "regsyn(10)")
xmenu()
xpanel()
b.intercept(0)
b.map()