Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

posrect.m 162 B

123456789101112
  1. function m = posrect(m)
  2. % function m = posrect(m)
  3. %
  4. % <m> is a matrix
  5. %
  6. % positively-rectify <m>.
  7. %
  8. % example:
  9. % isequal(posrect([2 3 -4]),[2 3 0])
  10. m(m<0) = 0;