Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function a = hardLimitTransfer (n)
  2. % hardLimitTransfer
  3. %
  4. % Implementation of a hard limit transfer.
  5. % Output, a, will be either 0 or 1, based on
  6. % whether the input, n, is >= to 0 or not.
  7.  
  8. %==================================================================
  9.  
  10. a = n >= 0;
  11. a = double(a);
  12.  
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement