Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eg=fcn(SV,dx,x)
- zone=0.001;
- dh=SV-(dx*0.5*abs(dx)+x);
- if abs(dh)>zone
- swith if dh>0 eg = -1;
- end
- if dh<0 eg = 1;
- else
- eg = 0;
- end;
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement