Skip to main content

parseTreatmentOptimizationData.m


% 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 are then organized into a 2D matrix with dimensions matching:
% (numFrames, numMuscles) and/or (numFrames, numCoordinates)
%
% (Array of string, Array of string, Model) -> (2D matrix, Cell)
% Returns a 2D matrix


function [data, dataLabels] = parseTreatmentOptimizationData(directory, ...
prefix, model)
[data, dataLabels] = parseFileFromDirectories(directory, prefix, model);
newData = zeros(size(data, 2), size(data, 3));
newData(:, :) = data(1, :, :);
data = newData';
dataLabels = cellstr(dataLabels);
end