opensim-core icon indicating copy to clipboard operation
opensim-core copied to clipboard

`StdVectorDouble` (and other similar classes) in MATLAB store java objects

Open carmichaelong opened this issue 8 months ago • 0 comments

This can become an issue downstream. For instance:

table = TimeSeriesTable('filename.mot');
t0 = table.getIndependentColumn().get(0);

t0 is of type java.lang.Double. This then does not work for use with a function such as TimeSeriesTable::appendRow() as the first argument is of type double.

One work around is to pass in t0.doubleValue() instead, but this is difficult to track down for MATLAB users.

carmichaelong avatar May 28 '24 17:05 carmichaelong