I = [1:2:30; 0.1:5:70.1; 3:0.4:8.6];

E3 = I(3, :);

min = min(E3);

max = max(E3);

Edges = [min:1:max+1];

n = histc(E3, Edges);

bar(Edges, n, ‘histc’);

Advertisements