function matplot(F) [r,c] = size(F); surf([[F,zeros(r,1)];zeros(1,c+1)]) view(2) shading flat axis([1,c+1,1,r+1]) %axis square %colorbar