MATLAB: Does ‘surf’ command cause MATLAB to hang or run slowly

3dgraphicshangsMATLABperformanceslowsurf

I've upgraded from matlab 2015a to 2017a, in 2017a the surf command causes matlab to hang.

Best Answer

This issue is likely because MATLAB is using 'painters' renderer to render 3D graphics.
Change the default renderer to opengl by executing this command:
>> set(0, 'DefaultFigureRenderer', 'opengl');
Please also check the startup.m file to verify if the 'DefaultFigureRenderer' is mistakenly set to 'painters'.