function show_the_solution(result) imshow(1-result,'InitialMagnification','fit') hold on u=[0 9]; for i=0.5:1:8.5 v=[i i]; line(u,v,'color','k') end v=[0 9]; for i=0.5:1:8.5 u=[i i]; line(u,v,'color','k') end end