www.pudn.com > Mutilayer_FD.rar > x_position.m, change:2007-05-22,size:377b


function x=x_position(m,n) 
 
step1=0.05; 
step2=0.1; 
 
 
t=0; 
x_temp=0; 
m_temp=0; 
 
if m<=35 
    m_temp=m; 
else 
    m_temp=70-m; 
end 
 
 
if m_temp>27 
    x_temp=(m_temp-27)*step2+step2*18+step1*8; 
elseif m_temp>19 
    x_temp=(m_temp-19)*step1+step2*18; 
else 
    x_temp=(m_temp-1)*step2; 
end     
 
 
if m<=35 
    x=x_temp; 
else 
    x=6-x_temp; 
end