Main Content

ploterrhist

Plot error histogram

Syntax

ploterrhist(e)
ploterrhist(e1,'name1',e2,'name2',...)
ploterrhist(...,'bins',bins)

Description

ploterrhist(e) plots a histogram of error values e.

ploterrhist(e1,'name1',e2,'name2',...) takes any number of errors and names and plots each pair.

ploterrhist(...,'bins',bins) takes an optional property name/value pair which defines the number of bins to use in the histogram plot. The default is 20.

Examples

Plot Histogram of Error Values

Here a feedforward network is used to solve a simple fitting problem:

[x,t] = simplefit_dataset;
net = feedforwardnet(20);
net = train(net,x,t);
y = net(x);
e = t - y;
ploterrhist(e,'bins',30)

Figure Error Histogram (ploterrhist) contains an axes. The axes with title Error Histogram with 30 Bins contains 33 objects of type bar, line, text. This object represents Zero Error.

Introduced in R2010b