MATLAB API Destructor
Posted: Mon Jul 08, 2013 1:35 pm
I am trying to write a MATLAB script which runs 100 trials of CMC and Forward Dynamics, but the script stops after the 13th trial with a RuntimeException: bad allocation error. Is this because of running out of memory for Java objects? I am trying to put a destructor command for each model after a trial is finished, but using ~Model() in MATLAB, which was listed in Doxygen as the destructor returns the error
Undefined function 'not' for input arguments of type
'org.opensim.modeling.Model'.
I would appreciate any input on how to avoid the memory issue in the first place or use the destructor correctly.
Thanks,
Maya
Undefined function 'not' for input arguments of type
'org.opensim.modeling.Model'.
I would appreciate any input on how to avoid the memory issue in the first place or use the destructor correctly.
Thanks,
Maya