I suggest the following approach:
%initialize A
A=[2.30 2.32 2.67 2.44 2.31 1.23];
%initilize an epsilon parameter which defines how close 2 values should be to one another to considered identical.
EPSILON = 0.05;
%generates all possible lists of pairs coordinates from A
[p,q] = meshgrid(1:n);
mask = logical(tril(ones(n,n))-eye(n,n));
allPairs = [p(mask),q(mask)];
%find pairs with absolute difference below epsilon
validPairs = abs(A(allPairs(:,1))- A(allPairs(:,2))) < EPSILON;
%result - pairs of numbers which are close to one another
allPairs(validPairs,:)
Result:
ans =
1 2
1 5
2 5
*The code for generating all possible pairs is taken from @Lambdageek solution