--- a/blockproc/blockplot.m
+++ b/blockproc/blockplot.m
@@ -20,6 +20,7 @@
    % DO the coefficient overlapping or cropping
 end
 
+ctf = cast(ctf,'single');
 javaMethod('append',p,ctf);