-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDraw_MH.m
More file actions
executable file
·37 lines (25 loc) · 1.16 KB
/
Draw_MH.m
File metadata and controls
executable file
·37 lines (25 loc) · 1.16 KB
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Janez Presern, Ales Skorjanc, Tomaz Rodic, Jan Benda 2011-2015
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function plots the activation and inactivation curves for the
% ramp-and-hold stimuli
% Function requires:
% stimamp.. stimulus description (amplitudes changes)
% pred_m0_x, pred_m0_y .. activation coordinates obtained by the model
% pred_h0_x, pred_h0_y .. activation coordinates obtained by the model
% Function outputs:
% fig .. figure handle
function fig = Draw_MH(stimAmp, pred_m0_x, pred_m0_y,...
pred_h0_x, pred_h0_y)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fig = figure;
s(1) = axes('OuterPosition', [0 0.0 1 1]);
hold on;
p2 = plot(pred_m0_x, pred_m0_y,'-b','LineWidth',2);
p4 = plot(pred_h0_x, pred_h0_y,'-r','LineWidth',2);
set(gca,'XTick',stimAmp(:,2));
hold off;
xlabel('x [\mum]');
ylabel('rel. value');
title('Activation and inactivation parameters');
legend([p2,p4],'predicted m0','predicted h0','Location','southeast');