79380999

Date: 2025-01-23 12:26:06
Score: 1
Natty:
Report link

I figured this one out, and can see why others did not reply.

The answer is right in the documentation:

Given a second vector argument, x, use that as the centers of the bins, with the width of the bins determined from the adjacent values in the vector.

Replace the first command with

octave:113> [nn,xx]=hist(p,[0:max(p)]);

and the histogram generated is exactly the one I was seeking.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: צבי