error opening files with Matlab Editor
12 次查看(过去 30 天)
显示 更早的评论
Matlab starts up, and when requested Matlab's editor starts up without problems. However, when trying to open self-made Matlab scripts and functions, the following error message appears:
Caught "std::exception" Exception message is: locale::facet::_S_create_c_locale name not valid
and the script won't load into the editor.
If I (use another editor to) purposefully edit some erroneous code into the script and let Matlab run it to generate an error message with a link, clicking it will open the script correctly into Matlab's editor.
- Ubuntu Linux 12.04.2 LTS, accessed by remote login
- Matlab version R2014a
- Matlab was installed with sudo in /usr/local, with symbolic links to Matlab's own scripts and function by linking to /usr/local/bin
4 个评论
Foivos Michelinakis
2015-7-29
I am having the same issue with matlab R2015A and Ubuntu 14.04.2.
I have followed the suggestions found on the Internet by rebuilding locales and modifying the files of /etc/default/locale /etc/environment and $HOME/.pam_environment to be similar to what Dominik proposed.
Any input will be appreciated.
Foivos Michelinakis
2015-7-29
After matlab starts run the following command
setenv('LC_ALL','C')
Then you will be able to open .m files.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programming Utilities 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!