function inter = widestInterval(A)
% inter is the widest Interval (by width) in A, an array of Intervals

inter= A(1); % widest Interval so far
for k= 2:length(A)
if A(k).right - A(k).left > inter.right - inter.left
inter= A(k);
end
end