Revision 4dbf0ec391b877f21402aed9e8351fe8f7468d14 authored by D019 Rig on 19 December 2019, 23:25:22 UTC, committed by D019 Rig on 19 December 2019, 23:25:22 UTC
1 parent 4cac1d4
VOR_breakTrace.m
function [cycleMat, cycleMean] = VOR_breakTrace(cycleLength, startpt, vector)
[cycleMat, ~] = vec2mat(vector(startpt:end), cycleLength, NaN);
% Remove first 5 cycles (to account for drift)
cycleMat(1:5,:) = [];
% Remove final (partial) cycle
cycleMat(end,:) = [];
% Calculate Cycles Mean
cycleMean = nanmean(cycleMat, 1);
Computing file changes ...