A great addition to the Fileexchange!
Just a quick comment. I don't know why no one else faces the same troubles, but on my system (Matlab 2011a) the call:
fails with the following error:
??? Maximum recursion limit of 500 reached. Use
to change the limit. Be aware that exceeding your
available stack space can
crash MATLAB and/or your computer.
Error in ==> usejava
When I looked into the code with debug, I was able to identify it as the line 134:
p = clipboard('paste');
for some reason this line "calls" the "paste"-file again, leading to infinite recursion.
(although I don't know why clipboard calls a function instead of performing its "supposed" action)
Anyways: I solved the problem by simply changing the filename:
paste.m -> mypaste.m
copy.m -> mycopy.m
And in addition in "copy.m" you also need to change the line 111 to "mycopy".
After this it works like a charm. :-)
In copy, I believe line 129 should be:
'dec' is also undefined within that same function which must be fixed in the input argument list and at line 92 and 94.