You can find the area under the histogram by summing all heights and multiply by the bin width
x = rand(1000,1);
h = histogram(x);
area = sum(h.Values)*h.BinWidth;
To get a histogram with the total area equal to 1. You can specify normalization
x = rand(1000,1);
h = histogram(x, 'Normalization', 'pdf');