-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTemporalSequencing.m
41 lines (35 loc) · 1.76 KB
/
TemporalSequencing.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
%Generate Data
[w_input_rec_small,w_ex_rec_small]=TemporalExcitatoryDelay(8*10^-7,14*10^-7);
[w_input_rec_norm,w_ex_rec_norm]=TemporalExcitatoryDelay(8*10^-5,14*10^-5);
%Small Amplitudes
winpSmall = PlotInput1Connections(w_input_rec_small);
wexSmall=PlotEx1Connections(w_ex_rec_small);
coloursSmall = PlotExExConnections(w_ex_rec_small);
wSmall = PlotInputExConnections(w_input_rec_small);
figure(1)
subplot(2,2,1); imagesc(winpSmall); ylabel('Input Neuron');
xlabel('Time(s)'); title('Feedforward Connections\nto Neuron 1')
subplot(2,2,2); imagesc(wexSmall); ylabel('Excitatory Neuron');
xlabel('Time(s)'); title('Excitatory Connections\nto Neuron 1')
subplot(2,2,3); imagesc(wSmall); ylabel('Input Neuron');
xlabel('Excitatory Neuron'); title('Feedforward Connections')
subplot(2,2,4); image(coloursSmall); ylabel('Pre Neuron');
xlabel('Post Neuron'); title('Excitatory Connections')
sgtitle('Temporal Coding - Small Amplitudes')
%Normal Amplitudes
winpNorm = PlotInput1Connections(w_input_rec_norm);
wexNorm=PlotEx1Connections(w_ex_rec_norm);
coloursNorm = PlotExExConnections(w_ex_rec_norm);
wNorm = PlotInputExConnections(w_input_rec_norm);
figure(2)
subplot(2,2,1); imagesc(winpNorm); ylabel('Input Neuron');
xlabel('Time(s)'); title('Feedforward Connections\nto Neuron 1')
subplot(2,2,2); imagesc(wexNorm); ylabel('Excitatory Neuron');
xlabel('Time(s)'); title('Excitatory Connections\nto Neuron 1')
subplot(2,2,3); imagesc(wNorm); ylabel('Input Neuron');
xlabel('Excitatory Neuron'); title('Feedforward Connections')
subplot(2,2,4); image(coloursNorm); ylabel('Pre Neuron');
xlabel('Post Neuron'); title('Excitatory Connections')
sgtitle('Temporal Coding - Normal Amplitudes')
saveas(figure(1),'TemporalCodingNetworkSmall.png')
saveas(figure(2),'TemporalCodingNetworkNorm.png')