Advertisement
Guest User

Matrixxes

a guest
Sep 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. flatHeight = [[32,31,27,21,13,6,6,13,21,27,31]
  2. [49,46,41,32,23,13,13,23,32,41,46]
  3. [66,63,55,44,32,21,21,32,44,55,63]
  4. [86,81,69,55,41,27,27,41,55,69,81]
  5. [106,97,81,63,46,31,31,46,63,81,97]
  6. [128,106,86,66,49,32,32,49,66,86,106]
  7. [106,97,81,63,46,31,31,46,63,81,97]
  8. [86,81,69,55,41,27,27,41,55,69,81]
  9. [66,63,55,44,32,21,21,32,44,55,63]
  10. [49,46,41,32,23,13,13,23,32,41,46]
  11. [32,31,27,21,13,6,6,13,21,27,31]];
  12.  
  13. filteredHeight = flatHeight
  14. flatHeight(flatHeight >= 20 | flatHeight <= 50) = 0;
  15.  
  16. % Operands to the || and && operators must be convertible to logical
  17. % scalar values.
  18.  
  19.  
  20. disp(filteredHeight);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement