Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marc Posthuma
Bachelor Stage
Commits
0b53a423
Commit
0b53a423
authored
Apr 29, 2021
by
mposthuma
Browse files
added some comments
parent
2e115a61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Target_response_plot_test_experiment.m
View file @
0b53a423
...
...
@@ -42,6 +42,9 @@ for iS = 1:length(Sac)
SS
(
iS
,
12
)
=
SS
(
iS
,
10
)
-
SS
(
iS
,
8
);
% Elevation Saccade amplitude
SS
(
iS
,
13
)
=
Data
.
stimuli
.
azimuth
(
SS
(
iS
,
1
));
% Target Azimuth
SS
(
iS
,
14
)
=
Data
.
stimuli
.
elevation
(
SS
(
iS
,
1
));
% Target Elevation
SS
(
iS
,
15
)
=
max
(
abs
(
diff
(
sqrt
(
azimuth
(
sacOn_idx
:
sacOff_idx
)
.^
2
+
elevation
(
sacOn_idx
:
sacOff_idx
)
.^
2
))));
% Max velocity
SS
(
iS
,
16
)
=
sqrt
(
SS
(
iS
,
11
)
^
2
+
SS
(
iS
,
12
)
^
2
);
end
...
...
@@ -85,6 +88,23 @@ for iH = 1:length(h)
h
(
iH
)
.
Color
=
col
(
iH
,:);
hr
(
iH
)
.
Color
=
col
(
iH
,:);
end
%% Main Sequence plots
% amplitude = length of saccade = pythagoras of azimuth + elevation
cfn
=
pb_newfig
(
cfn
);
sgtitle
(
'Main Sequence'
)
iS
1
:
2
velocity
=
SS
(:,
15
);
amplitude
=
abs
(
SS
(:,
16
));
subplot
(
1
,
2
,
iS
);
hold
on
;
axis
square
h
(
iS
)
=
plot
(
amplitude
,
velocity
,
'o'
);
xlabel
(
'Amplitude'
);
ylabel
(
'Peak velocity'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment