Page 1 of 1

Matlab Stops Working

Posted: Thu Feb 24, 2022 3:43 pm
by pablo_delgado
Hello,

I am trying to use Matlab R2021a with OpenSim 4.3. Every time that I run the below code Matlab executes all the commands, and then it stops working. Any idea why this is happening?

Code: Select all

%% Matlab Script for Opensim
clearvars
import org.opensim.modeling.*      % Import OpenSim Libraries
model = Model('FlexExt_scaled_model.osim');
bodylist = model.getBodyList();
iter = bodylist.begin();

while ~iter.equals(bodylist.end())
   iter.getName()
   iter.next()
end