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
de2426a8
Commit
de2426a8
authored
May 20, 2021
by
mposthuma
Browse files
still need to add regression data in plots
parent
62cd3eae
Changes
2
Hide whitespace changes
Inline
Side-by-side
target_response_plot.m
View file @
de2426a8
...
...
@@ -22,6 +22,7 @@ azimuth = Data.epoch.AzGazeEpoched;
elevation
=
Data
.
epoch
.
ElGazeEpoched
;
% Run over saccades
% supindex SS index information
for
iS
=
1
:
length
(
Sac
)
trial_idx
=
Sac
(
iS
,
1
);
...
...
@@ -76,8 +77,8 @@ for iS = 1:2
title
(
c_title
{
iS
});
h
(
iS
)
=
plot
(
target
,
response
,
'o'
);
hr
(
iS
)
=
pb_regplot
(
target
,
response
,
'data'
,
false
);
xlabel
(
'Target ({\circ})'
);
ylabel
(
'Response ({\circ})'
);
xlabel
(
'Target (
$^
{\circ}
$
)'
);
ylabel
(
'Response (
$^
{\circ}
$
)'
);
xlim
([
-
50
50
]);
ylim
([
-
50
50
]);
pb_dline
;
...
...
target_response_plot_vUni2.m
View file @
de2426a8
...
...
@@ -34,10 +34,13 @@ for iT = 1:trial_len % run over all different trials
% condition 3: S(-1) AMP > S(0) AMP
if
iS
>=
2
last_sacc
=
abs
(
saccades
(
iS
-
1
,
11
));
curr_sacc
=
abs
(
saccades
(
iS
,
11
));
last_sacc_az
=
abs
(
saccades
(
iS
-
1
,
9
));
curr_sacc_az
=
abs
(
saccades
(
iS
,
9
));
last_sacc_el
=
abs
(
saccades
(
iS
-
1
,
10
));
curr_sacc_el
=
abs
(
saccades
(
iS
,
10
));
if
curr_sacc
>
last_sacc
;
some_condintion
=
false
;
end
% first saccade needs to be the largest
if
curr_sacc_az
>
last_sacc_az
;
some_condintion
=
false
;
end
% first saccade needs to be the largest
if
curr_sacc_el
>
last_sacc_el
;
some_condintion
=
false
;
end
end
current_saccade_amplitude_az
=
saccades
(
iS
,
11
);
% azimuth
...
...
@@ -101,7 +104,6 @@ t = 1/120:1/120:3;
cfn
=
pb_newfig
(
cfn
);
hold
on
axis
square
plot
(
t
,
AzEye
);
plot
(
t
,
AzGaze
);
plot
(
t
,
AzChair
);
...
...
@@ -114,6 +116,7 @@ title('Example Epoched Saccade Azimuth');
legend
(
'AzEye'
,
'AzGaze'
,
'AzChair'
,
'AzHead'
,
'TargetAz'
,
'ReactionTime'
);
xlabel
(
'Time(s)'
);
ylabel
(
'Response($^{\circ}$)'
);
axis
square
;
pb_nicegraph
;
%%
...
...
@@ -129,7 +132,6 @@ t = 1/120:1/120:3;
cfn
=
pb_newfig
(
cfn
);
hold
on
axis
square
plot
(
t
,
ElEye
);
plot
(
t
,
ElGaze
);
plot
(
t
,
ElChair
);
...
...
@@ -142,6 +144,7 @@ title('Example Epoched Saccade Elevation');
legend
(
'ElEye'
,
'ElGaze'
,
'ElChair'
,
'ElHead'
,
'TargetEl'
,
'ReactionTime'
);
xlabel
(
'Time(s)'
);
ylabel
(
'Response($^{\circ}$)'
);
axis
square
;
pb_nicegraph
;
...
...
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