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.
Unrecognized function or variable 'Model'.
- Sreejan Alapati
- Posts: 9
- Joined: Mon Feb 01, 2021 2:15 am
- Sreejan Alapati
- Posts: 9
- Joined: Mon Feb 01, 2021 2:15 am
Re: Unrecognized function or variable 'Model'.
I solved the problem. I did not configure Matlab to run Opensim https://simtk-confluence.stanford.edu:8 ... ith+Matlab