The 'drawnow' function instructs the MATLAB to flush the event queue while creating and updating figure window. You can achieve this by specifying the 'drawnow' command as the default create function(CreateFcn) in file 'startup.m'. The general form to do this would be as follows:
For example, to ensure that line, patch, and surface objects are fully drawn by default when being created, include the following lines in your startup.m file:
It may not be possible to switch to older graphics when you are using newer version of MATLAB. If you are facing any performance issues and there are any 'clf' or 'figure' commands in the code, try replacing them by following code:
f = clf;
This will disable the visibility of the figure window. Also, add the following line before ending the function:
Try the above. It may help improving the performance.