I have a script file which creates a figure of specific dimensions and then increases its size. This increase in size is performed in steps which results in an "animation effect". The execution time of this script in R2007a is nearly 30-40 times faster than in R2008b.
f = figure('units', 'char', 'pos', [30 30 60 30]);drawnow;ticfor i = 1:15 %Increment the height of the GUI
GUIPosition = get(f, 'Position'); GUIPosition(1,4) = GUIPosition(1,4)+1; %Increment the height
GUIPosition(1,2) = GUIPosition(1,2)-0.5; %Decrement the y-pos
set(f, 'Position', GUIPosition);endtocpause(1); close(f);
Best Answer