www.pudn.com > Patternrecognition.rar > FindHyp.m, change:2009-04-10,size:801b


function [hp]=FindHyp(net,MM,dem) 
k=0; 
if(dem==2) 
    for i=round(MM(1,1)):round(MM(1,2)) 
        for j=round(MM(2,1)):round(MM(2,2)) 
            hp1=[i;j];   yuce1=round(sim(net,hp1)); 
            hp2=[i;j+1]; yuce2=round(sim(net,hp2)); 
            if (yuce1~=yuce2) 
                k=k+1; hp(k,1)=i; hp(k,2)=j; 
            end; 
        end; 
    end; 
end; 
if(dem==3) 
    for i=round(MM(1,1)):round(MM(1,2)) 
        for j=round(MM(2,1)):round(MM(2,2)) 
            for q=round(MM(3,1)):round(MM(3,2)) 
                hp1=[i;j;q]; yuce1=round(sim(net,hp1)); 
                hp2=[i;j;q+1]; yuce2=round(sim(net,hp2)); 
                if (yuce1~=yuce2) 
                    k=k+1; hp(k,1)=i; hp(k,2)=j; hp(k,3)=q; 
                end; 
            end; 
        end; 
    end;     
end;