Matlab scripting installation error

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Matlab scripting installation error

Post by Xijin Hua » Wed Oct 28, 2020 4:48 pm

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

Tags:

User avatar
Carmichael Ong
Posts: 401
Joined: Fri Feb 24, 2012 11:50 am

Re: Matlab scripting installation error

Post by Carmichael Ong » Fri Oct 30, 2020 1:57 pm

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.

User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Re: Matlab scripting installation error

Post by Xijin Hua » Fri Oct 30, 2020 2:56 pm

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

POST REPLY