% This function is part of the NMSM Pipeline, see file for full license.
%
% This function pulls the files from the directory given as the input.
% These files time columns are then organized into a 2D matrix with
% dimensions matching: (numFrames, numTrials)
%
% (Array of string) -> (2D matrix of number)
% returns a 2D matrix of the trial time columns
function cells = parseTimeColumn(files)
import org.opensim.modeling.Storage
dataFromFileOne = findTimeColumn(Storage(files(1)));
cells = zeros(length(files), length(dataFromFileOne));
cells(1, :) = dataFromFileOne;
for i=2:length(files)
cells(i, :) = findTimeColumn(Storage(files(i)));
end
end