MATLAB 启动时死机现象
Problem #4: Issue with Java environment
MATLAB has a command line environment in addition to the normal MATLAB Desktop environment. This environment is not dependent on Java and can be useful for troubleshooting MATLAB. To launch MATLAB with no desktop environment:
- Right click on the MATLAB shortcut and choose properties.
- Go to the end of the “Target” line, after MATLAB.exe, and add the flag -nodesktop. For example: “C:\Program Files\Matlab\R2016a\bin\matlab.exe” -nodesktop Press OK to save these changes.
- Try starting MATLAB again. If MATLAB starts, try running the command “desktop” to see if MATLAB will open in full mode.
- If this does not work, add the line -nojvm where -nodesktop previously existed and try to start MATLAB again.
Finally, you can use the line -softwareopengl and try to start MATLAB again.
You can work around many graphics issues by using the software version of OpenGL® built-into MATLAB instead of using your graphics hardware. In some cases, MATLAB automatically switches to software OpenGL, for example, if it detects known issues such as outdated drivers or graphics virtualization. Software OpenGL does not support some graphics features, such as graphics smoothing.
To determine if you are using hardware or software OpenGL, type ‘opengl info’. The returned information contains the line Software: ‘false’ if you are using hardware OpenGL or Software: ‘true’ if you are using software OpenGL. To switch from hardware to software OpenGL, start MATLAB from the command prompt or terminal on your system using this command:
matlab -softwareopengl To set your preferences so that MATLAB always starts with software OpenGL on this computer, execute this command at the MATLAB command line: opengl(‘save’,’software’)
Reference
文档信息
- 本文作者:Huang Henry
- 本文链接:https://huanghenry.github.io/2020/04/21/matlab_crash_problem/
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)