From: Bart Ribbens on
This solution works perfect! Thanks a lot!

> try
> h=imagesc(X,Y,C)
> set(h,'alphadata',~isnan(C))