Skip to main content

getStorageColumnNames.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function extracts the data of the OpenSim Storage object to a MATLAB
% array of strings. The array does not include 'time', only dependent
% column names.
%
% (Storage) -> (Array of string)
% Extracts column names as string


function output = getStorageColumnNames(storage)
strings = {};
columnNames = storage.getColumnLabels();
for i=1:columnNames.getSize()-1
strings{end+1} = columnNames.getitem(i);
end
output = string(strings);
end