Page 1 of 1

Matlab scripting installation error

Posted: Wed Oct 28, 2020 4:48 pm
by xhua
Dear OpenSim experts

I would like try the MATLAB scripting for OpenSim. However, when I set up the MATLAB scripting environment, according to the online OpenSim Documentation (Setting up your MATLAB Scripting Environment, website: https://simtk-confluence.stanford.edu:8 ... ith+Matlab), it is said I need to first change my current folder to the opensim matlab scripts directory, on windows which is C:/Users/<username>/Documents/OpenSim/4.0/Code/Matlab, and then run the configureOpenSim.m file from the current folder.

But my problems are that I cannot find the OpenSim Matbla scripts directory as you instructed. And then I try to search the configureOpenSim.m file in the whole C: drive, and there is no such file existed in the drive.

Could you please tell me what is the problem and how to set up the MATLAB scripting environment in this case. Thank you very much in advance.

Best regards

Xijin

Re: Matlab scripting installation error

Posted: Fri Oct 30, 2020 1:57 pm
by ongcf
When you first install OpenSim 4.0+, upon first opening the GUI application, it will ask you where to install some additional files (these are Model and Code folders). It's possible that you cancelled out of this operation, or asked it to install in a different location. There might be two possible ways to fix this:

1) Open the GUI, and go to the ScriptingShell Window. Enter in:

Code: Select all

installResources()
This should bring up the original prompt again.

2) I think if you reinstall OpenSim, it would ask you again.

Re: Matlab scripting installation error

Posted: Fri Oct 30, 2020 2:56 pm
by xhua
Hi, Carmichael

Thank you very much for your kindly reply. Your suggestions are very helpful and the problem has been solved. Thank you so much.

Best regards

Xijin