sijixix
ÔõÑùÉè¼ÆÃÔ¹¬?
2:L+1)=zeros(L);dvd(1,L+2,1,L+2);%µÝ¹é·Ö¸îimage(50*maze);functiondvd(x1,x2,y1,y2)globalmazex=[];y=[];fori=x1+2:x2-2if((maze(i,y1)~=0)&&(maze(i,y2)~=0))x=[xi];endendforj=y1+2:y2-2if((maze(x1,j)~=0)&&(maze(x2,j)~=0))y
2:L+1)=zeros(L);dvd(1,L+2,1,L+2);%µÝ¹é·Ö¸îimage(50*maze);functiondvd(x1,x2,y1,y2)globalmazex=[];y=[];fori=x1+2:x2-2if((maze(i,y1)~=0)&&(maze(i,y2)~=0))x=[xi];endendforj=y1+2:y2-2if((maze(x1,j)~=0)&&(maze(x2,j)~=0))y