Commit 0b53a423 authored by mposthuma's avatar mposthuma
Browse files

added some comments

parent 2e115a61
......@@ -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');
......
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