-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlottingFICurves_v1.m
115 lines (92 loc) · 3.54 KB
/
PlottingFICurves_v1.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
close all
%%
figure('units','normalized','position',[0 0 1 1])
plot(x_exp_control(11:23), control_exp_initial(11:23), 'ro-', 'LineWidth', 2)
hold on
% plot(x_exp_control(11:23), control_exp_initial(11:23), 'r-', 'LineWidth', 2)
% hold on
% plot(x_model(1:101), control_model(1:101), 'b-', 'LineWidth', 2)
% hold on
plot(x_exp_control(11:23), control_exp_final(11:23), 'mo-', 'LineWidth', 2)
hold on
% plot(x_exp_control(17:23), control_exp_final(17:23), 'm-', 'LineWidth', 2)
% hold on
% plot(x_model(1:101), control_model_final(1:101), 'c-', 'LineWidth', 2)
axis([0 100 0 20])
set(gca, 'FontSize', 20);
xlabel('Input Current (pA)', 'FontSize', 26);
ylabel('Firing Frequency (Hz)', 'FontSize', 26);
lgd=legend('Control, Experiment (Using Initial ISI)', 'Control, Experiment (Using Final ISI)', 'Location', 'NorthWest');
lgd.FontSize=20;
str1=sprintf('FI_control_exp_2.png');
str2=sprintf('FI_control_exp_2.fig');
saveas(gcf, str2)
set(gcf,'PaperPositionMode','auto')
print(str1, '-dpng', '-r0');
%%
figure('units','normalized','position',[0 0 1 1])
% plot(x_exp_control(11:23), control_exp_initial(11:23), 'r-o', 'LineWidth', 2)
% hold on
plot(x_model(1:101), control_model(1:101), 'b-', 'LineWidth', 2)
hold on
% plot(x_exp_control(11:23), control_exp_final(11:23), 'm-o', 'LineWidth', 2)
% hold on
plot(x_model(1:101), control_model_final(1:101), 'c-', 'LineWidth', 2)
hold on
axis([0 100 0 65])
set(gca, 'FontSize', 20);
xlabel('Input Current (pA)', 'FontSize', 26);
ylabel('Firing Frequency (Hz)', 'FontSize', 26);
lgd=legend('Control, Model (Using Initial ISI)', 'Control, Model (Using Final ISI)', 'Location', 'NorthWest');
lgd.FontSize=20;
str1=sprintf('FI_control_model.png');
str2=sprintf('FI_control_model.fig');
saveas(gcf, str2)
set(gcf,'PaperPositionMode','auto')
print(str1, '-dpng', '-r0');
%%
figure('units','normalized','position',[0 0 1 1])
plot(x_exp_fourap(11:end-1), fourap_exp_initial(11:end-1), 'ro-', 'LineWidth', 2)
hold on
% plot(x_exp_fourap(11:end-1), fourap_exp_initial(11:end-1), 'r-', 'LineWidth', 2)
% hold on
% plot(x_model(1:101), fourap_model(1:101), 'b-', 'LineWidth', 2)
% hold on
plot(x_exp_fourap(11:end-1), fourap_exp_final(11:end-1), 'mo-', 'LineWidth', 2)
hold on
% plot(x_exp_fourap(11:end-1), fourap_exp_final(11:end-1), 'm-', 'LineWidth', 2)
% hold on
% plot(x_model(1:101), fourap_model_final(1:101), 'c-', 'LineWidth', 2)
% hold on
axis([0 100 0 20])
set(gca, 'FontSize', 20);
xlabel('Input Current (pA)', 'FontSize', 26);
ylabel('Firing Frequency (Hz)', 'FontSize', 26);
lgd=legend('4-AP, Experiment (Using Initial ISI)', '4-AP, Experiment (Using Final ISI)', 'Location', 'NorthWest');
lgd.FontSize=20;
str1=sprintf('FI_4AP_exp_2.png');
str2=sprintf('FI_4AP_exp_2.fig');
saveas(gcf, str2)
set(gcf,'PaperPositionMode','auto')
print(str1, '-dpng', '-r0');
%%
figure('units','normalized','position',[0 0 1 1])
% plot(x_exp_fourap(11:end-1), fourap_exp_initial(11:end-1), 'r-o', 'LineWidth', 2)
% hold on
plot(x_model(1:101), fourap_model(1:101), 'b-', 'LineWidth', 2)
hold on
% plot(x_exp_fourap(11:end-1), fourap_exp_final(11:end-1), 'm-o', 'LineWidth', 2)
% hold on
plot(x_model(1:101), fourap_model_final(1:101), 'c-', 'LineWidth', 2)
hold on
axis([0 100 0 65])
set(gca, 'FontSize', 20);
xlabel('Input Current (pA)', 'FontSize', 26);
ylabel('Firing Frequency (Hz)', 'FontSize', 26);
lgd=legend('4-AP, Model (Using Initial ISI)', '4-AP, Model (Using Final ISI)', 'Location', 'NorthWest');
lgd.FontSize=20;
str1=sprintf('FI_4AP_model.png');
str2=sprintf('FI_4AP_model.fig');
saveas(gcf, str2)
set(gcf,'PaperPositionMode','auto')
print(str1, '-dpng', '-r0');