Watch this Author's files
Very useful. The only problem I had is that it messes up the figure if the original axes units were not normalized. This can be fixed by inserting
set(C,'Units','normalized');
before
set(C, 'Position', NewPos);
Contact us