[a,b] = setup_grid (100,[[1,0.5,0.1];[1,0.3,0.3];[1,0.5,0.5]],[1,2,3],'edge' , 6)
[a,b] = setup_grid (100,[[1,0.5,0.1];[1,0.3,0.3];[1,0.5,0.5]],[1,2,3],'random' , 3)


[a,b] = setup_grid (100,[[1,0.5,0.1,0.3];[1,0.3,0.3,0.3];[1,0.5,0.5,0.3]],[1,2,3],'edge' , 6)
[a,b] = setup_grid (100,[[1,0.5,0.1,1];[1,0.3,0.3,1];[1,0.5,0.5,0.2]],[1,2,3],'random' , 3)

zeros(100,100)

[a,b] = setup_grid (100,zeros(100,100),1:100,'random' , 10)
[a,b] = setup_grid (100,zeros(100,100),1:100,'edge' , 10)

[a,b] = setup_grid (100,zeros(100,100),1:100,'edge' , 10)
[a,b] = setup_grid (100,randn(100,100),1:100,'edge' , 10)
[a,b] = setup_grid (100,randn(100,100),1:100,'random' , 10)