Watch this Author's files
3 mal = 3 times.
Its a lot faster (3 mal in my computer) if you change the lines 113 - 118 (the Java to Matlab RGB conversion) to:
rasta = typecast(rasta, 'uint8');
I posted my own version of saurabh kumar screencapture script here