function [ array ] = bound( array, low, hi )

% function [ array ] = bound( array, low, hi )
%
%   Makes sure array is not less than low and not more than hi
%
%   J. G. Bellingham, Sept 16, 2013

array = array((array >= low) & (array <= hi));

end