Unrecognized function or variable 'Model'.
Posted: 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.
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.