Hi Arash,
To address MATLAB crashing when opening the editor tab, start by updating your graphics card drivers, as outdated or corrupted drivers are a common cause of such issues. Visit the website of your graphics card manufacturer (NVIDIA, AMD, Intel) to download and install the latest drivers for your specific model. This step ensures that MATLAB can properly utilize hardware acceleration, which is crucial for the editor's performance.
If updating the drivers doesn't resolve the problem, try disabling MATLAB's hardware-accelerated graphics. You can do this by launching MATLAB and running the command opengl('save', 'software') in the Command Window. This forces MATLAB to use software OpenGL rendering, which can bypass problems related to graphics hardware. Also When matlab crashes it usually generates a bug report. you can use below documentation which help you to understand the issue and ways to resolved it.
Hope it helps!
Thanks.