Advertisement
Guest User

Untitled

a guest
Feb 26th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. function eg=fcn(SV,dx,x)
  2.  
  3. zone=0.001;
  4. dh=SV-(dx*0.5*abs(dx)+x);
  5. if abs(dh)>zone
  6. swith if dh>0 eg = -1;
  7. end
  8. if dh<0 eg = 1;
  9. else
  10. eg = 0;
  11. end;
  12. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement