Plot error histogram
ploterrhist(e)
ploterrhist(e1,'name1',e2,'name2',...)
ploterrhist(...,'bins',bins)
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.
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)