Commit de2426a8 authored by mposthuma's avatar mposthuma
Browse files

still need to add regression data in plots

parent 62cd3eae
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment