from
ZoomBox
by Doug Hull Movable, stretchable zoom box in parent axes controls axes limits in all children axes.
span(input);
function output = span(input);
%SPAN finds the range of a vector.
% output = max(input(:)) - min(input(:));
%
% Helper function for ZOOMBOX.
output = max(input(:)) - min(input(:));
% Copyright 2007 - 2009 The MathWorks, Inc.