function img(x)
n=sqrt(size(x,1));
load clrmap;
colormap(MAP);
imagesc(reshape(x,n,n));
colorbar('vert');
