image thumbnail
from Picture Puzzle by Sandeep Solanki
solve picture puzzle of 3X3

creat
function s = creat
done = 0;
while done == 0
    m = reshape([randperm(8) 9],3,3);
    ind = find(m==8);
    ind1 = find(m==7);
    s=m;
    if abs(ind-ind1)<6 && abs(ind-ind1)>3
        done = 1;
    end
end

Contact us