Unrecognized function or variable 'Model'.

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sreejan Alapati
Posts: 9
Joined: Mon Feb 01, 2021 2:15 am

Unrecognized function or variable 'Model'.

Post by Sreejan Alapati » Sun Apr 18, 2021 11:55 pm

I am just starting to do scripting in matlab.
I wrote the script by importing opensim libraries as in this article. https://simtk-confluence.stanford.edu:8 ... ith+Matlab

import org.opensim.modeling.*
model = Model('arm26.osim');
body = Body('ball',0.01,Vec3(0),Inertia(0));
body.attachGeometry('Ball150.stl');
model.addBody(body);

model.finalizeConnections();
model.print('arm26wb.osim');

When I try to run the program, it says "Unrecognized function or variable 'Model'."
I went on to check 'methods'.
>> methods Model

No class Model.

Can you please help me with this.

Tags:

User avatar
Sreejan Alapati
Posts: 9
Joined: Mon Feb 01, 2021 2:15 am

Re: Unrecognized function or variable 'Model'.

Post by Sreejan Alapati » Mon Apr 19, 2021 7:25 am

I solved the problem. I did not configure Matlab to run Opensim https://simtk-confluence.stanford.edu:8 ... ith+Matlab

POST REPLY