www.pudn.com > work_2.rar > gezhuangtu.m


function gezhuangtu 
 
 
length=input('input the restric length of the coding\n'); 
%»­΅γ 
for x=0:1:6*(length-1) 
    for y=0:1:(2^(length-1)-1) 
    point=plot(x,y,'ro'); 
    hold on 
    end 
end 
 
%»­ΠιΟί 
for x=0:1:6*(length-1)-1 
    for y=0:1:(2^(length-1)-1) 
    xuxian=plot([x,x+1],[y,(fix(y*0.5)+2^(length-1-13))],'--'); 
    hold on 
    end 
end 
 
%»­Κ΅Οί     
for x=0:1:6*(length-1)-1 
    for y=0:1:(2^(length-1)-1) 
    shixian=plot([x,x+1],[y,(fix(y*0.5))],'g'); 
    hold on 
    end 
end 
end 
     
end