Page 1 of 1

Unrecognized function or variable 'Model'.

Posted: Sun Apr 18, 2021 11:55 pm
by sreejan
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.

Re: Unrecognized function or variable 'Model'.

Posted: Mon Apr 19, 2021 7:25 am
by sreejan
I solved the problem. I did not configure Matlab to run Opensim https://simtk-confluence.stanford.edu:8 ... ith+Matlab