Will the configureMatlab.m file run correctly on Windows 10?
If not, is there a way to set up the MATLAB API in Windows 10?
configureMatlab.m on Windows 10
- Tom Augenstein
- Posts: 38
- Joined: Thu May 03, 2018 8:19 am
Re: configureMatlab.m on Windows 10
Yep, it is used by people on W10 machines often.Will the configureMatlab.m file run correctly on Windows 10?
- Tom Augenstein
- Posts: 38
- Joined: Thu May 03, 2018 8:19 am
Re: configureMatlab.m on Windows 10
Ok, it's not running correctly on my computer. It keeps returning the following error message:
Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in configureOpenSim>edit_path_txt_file (line 89)
fprintf(fileID,'%s\n',char(Cnew{1}{i}));
Error in configureOpenSim (line 56)
edit_path_txt_file(classFile,OpenSimJarPath)
I'm using MATLAB R2017B, and I've successfully configured MATLAB on the same version using Windows 7. I'm certain that I'm selecting the correct file. Any idea what the issue is?
Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.
Error in configureOpenSim>edit_path_txt_file (line 89)
fprintf(fileID,'%s\n',char(Cnew{1}{i}));
Error in configureOpenSim (line 56)
edit_path_txt_file(classFile,OpenSimJarPath)
I'm using MATLAB R2017B, and I've successfully configured MATLAB on the same version using Windows 7. I'm certain that I'm selecting the correct file. Any idea what the issue is?
Re: configureMatlab.m on Windows 10
The issue is that you don't have write access to the path you are defining. Start MATLAB as an administrator (right-click MATLAB, and select Run as administrator). The script is trying to write to a file in the MATLAB installation, which requires administrator privileges.
- Tom Augenstein
- Posts: 38
- Joined: Thu May 03, 2018 8:19 am
Re: configureMatlab.m on Windows 10
Ok that worked, thanks for the help