function clip(IN) %% This takes all the points in an array and clips them to one. %% By Alan Daniels, 591-16-0655. [ROWS, COLS] = size(IN); for ROW = 1:ROWS, for COL = 1:COLS, if IN(ROW, COL) > 1 IN(ROW, COL) = 1.0; end end end