Watch this Author's files
Nitay and Danilo are correct. I just upgraded to R2012a and now my previous fix doesn't work whereas it did on R2008b.
Danilo's fix should work for all cases...
One of the functions in this package has an error:
for jcp_index = 1:size(jcp,1)
for jcp_index = 1:size(jcp,2)