Skip to main content

findStorageColumn.m


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


function columnData = findStorageColumn(storage, intOrString)
import org.opensim.modeling.ArrayDouble
arrayDouble = ArrayDouble();
storage.getDataColumn(intOrString, arrayDouble);
columnData = arrayDoubleToDoubleArray(arrayDouble);
end