plotHistF#

Purpose#

Graphs a histogram given a vector of frequency counts.

Format#

plotHistF([myPlot, ]f, c)#
Parameters:
  • myPlot (struct) – Optional argument, a plotControl structure

  • f (Nx1 vector) – frequencies to be graphed.

  • c (Nx1 vector) – numeric labels for categories. If this is a scalar 0, a sequence from 1 to rows(f) will be created.

Remarks#

The axes are not automatically labeled. Use the functions plotSetXLabel() and plotSetYLabel().

Examples#

// Create frequency counts and category labels
f = 10|25|40|15|10;
c = 1|2|3|4|5;

// Plot frequency histogram
plotHistF(f, c);

See also

Functions plotHist(), plotBar(), plotSetXLabel()