Can I revert to 2014a graphics, while keeping all other 2015a functionality?

조회 수: 1 (최근 30일)
I recently upgraded to 2015a and am now having problems with it running slowly during plotting operations. I've upgraded my graphics card and have ensured that it is using opengl hardware, but it's still slower than 2014a on my worse graphics card. I started to use the drawnow command which helps a bit, but I'd like to revert to 2014a graphics while keeping other upgrades, is this possible? Also is there a way to set drawnow to default(every time I plot something no matter what it draws immediately) without putting it after every plot command and cluttering my code?
Thanks,

채택된 답변

Umakant
Umakant 2015년 5월 20일
Hi Adam,
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:
set(0,'DefaultObjectTypeCreateFcn','drawnow')
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:
set(0,'DefaultLineCreateFcn','drawnow');
set(0,'DefaultPatchCreateFcn','drawnow');
set(0,'DefaultSurfaceCreateFcn','drawnow');
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;
set(f,'Visible','off');
This will disable the visibility of the figure window. Also, add the following line before ending the function:
set(f,'Visible','on');
Try the above. It may help improving the performance.
Thanks,
Umakant

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by