This is likely caused by a bug in your graphics card drivers.
Several users have reported this issue, and they were able to resolve it by uninstalling their old graphics driver and then reinstalling the updated version of their drivers from the following page:
Alternatively, some other users have resolved the issue by having MATLAB use the software implementation of OpenGL. For example, you can execute either of the following commands from your system command prompt / terminal.
Option 1 (only for Windows and Linux systems):
Option 2 (only for Windows systems and only for R2017b and later releases):
matlab -softwareopenglmesa
If none of the above steps helps to prevent additional crashes, please contact Technical Support:
Best Answer