Skip to main content

findTimeColumn.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% Retrieves the time column from an OpenSim Storage object and converts it
% to a 1D array of double.
%
% (Storage) -> (Array of double)
% Returns storage time column as array of double


function timeColumn = findTimeColumn(storage)
import org.opensim.modeling.ArrayDouble
arrayDouble = ArrayDouble();
storage.getTimeColumn(arrayDouble);
timeColumn = arrayDoubleToDoubleArray(arrayDouble);
end