Matlab Stops Working

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Pablo Delgado
Posts: 24
Joined: Tue Feb 11, 2020 3:39 pm

Matlab Stops Working

Post by Pablo Delgado » Thu Feb 24, 2022 3:43 pm

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

Tags:

POST REPLY